bryanck commented on code in PR #8555:
URL: https://github.com/apache/iceberg/pull/8555#discussion_r1327846264


##########
flink/v1.17/flink/src/main/java/org/apache/iceberg/flink/sink/IcebergFilesCommitter.java:
##########
@@ -149,6 +156,12 @@ public void initializeState(StateInitializationContext 
context) throws Exception
     // Open the table loader and load the table.
     this.tableLoader.open();
     this.table = tableLoader.loadTable();
+    if (reloadIntervalMs > 0) {
+      this.tableSupplier = new ReloadingTableSupplier(table, tableLoader, 
reloadIntervalMs);

Review Comment:
   I removed the table supplier in the committer, it only uses a table loader 
now. In the writer, the supplier is owned by the task writer factory, not the 
operator, but the operator is responsible for triggering the refresh. The 
current TableLoader interface doesn't provide a good way to do that. I’ll try 
moving things around so the supplier interface isn’t needed.



-- 
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]

Reply via email to