cshuo commented on code in PR #18894:
URL: https://github.com/apache/hudi/pull/18894#discussion_r3345783460


##########
hudi-flink-datasource/hudi-flink/src/main/java/org/apache/hudi/sink/partitioner/index/GlobalRecordLevelIndexBackend.java:
##########
@@ -124,6 +127,15 @@ public Map<String, HoodieRecordGlobalLocation> 
get(List<String> recordKeys) thro
     return keysAndLocations;
   }
 
+  private HoodiePairData<String, HoodieRecordGlobalLocation> 
lookupLocationsForMissedKeys(List<String> missedKeys) {
+    // For flink adaptive batch execution, writer coordinator is not started 
yet, so metadata table
+    // is not initialized for a new table.
+    if (!tableMetadata.enabled()) {

Review Comment:
   Before this change, the pipeline will throw exception during job starting 
when executed in batch mode with flink 2.0+.



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

Reply via email to