pvary commented on code in PR #8555:
URL: https://github.com/apache/iceberg/pull/8555#discussion_r1326994677
##########
flink/v1.17/flink/src/main/java/org/apache/iceberg/flink/sink/FlinkSink.java:
##########
@@ -581,16 +608,26 @@ static RowType toFlinkRowType(Schema schema, TableSchema
requestedSchema) {
static IcebergStreamWriter<RowData> createStreamWriter(
Table table,
+ TableLoader tableLoader,
FlinkWriteConf flinkWriteConf,
RowType flinkRowType,
- List<Integer> equalityFieldIds) {
+ List<Integer> equalityFieldIds,
+ long minReloadIntervalMs) {
Review Comment:
My comment might be lost somewhere, but I think it would be better to
receive the TableSupplier here, instead of creating a new "incidentally" same
supplier than we do in the FlinkSink.
Also seeing the TableLoader/TableSupplier in one place mad me think how do
we separate the functionality of the 2. Do we really need 2 objects
providing/reloading tables?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]