bryanck commented on code in PR #8555:
URL: https://github.com/apache/iceberg/pull/8555#discussion_r1330358064
##########
flink/v1.17/flink/src/main/java/org/apache/iceberg/flink/sink/IcebergStreamWriter.java:
##########
@@ -57,13 +61,24 @@ public void open() {
// Initialize the task writer factory.
this.taskWriterFactory.initialize(subTaskId, attemptId);
+ // Refresh the table if needed.
+ this.tableLoader.open();
+ if (this.taskWriterFactory instanceof RowDataTaskWriterFactory) {
Review Comment:
The instance check here is to ensure the typecast is safe. The table loader
passed in will either be `ImmutableTableLoader` or `CachingTableLoader` so
calling `loadTable` should behave appropriately.
--
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]