wangxianghu commented on a change in pull request #2994:
URL: https://github.com/apache/hudi/pull/2994#discussion_r643009060



##########
File path: 
hudi-flink/src/main/java/org/apache/hudi/sink/partitioner/BucketAssignFunction.java
##########
@@ -110,9 +111,10 @@
   private final boolean bootstrapIndex;
 
   /**
-   * State to book-keep which partition is loaded into the index state {@code 
indexState}.
+   * Indicate whether the index information of the current {@link HoodieKey} 
is loaded into state or not.
+   * If it is empty or false, hoodie will load the index from table first.
    */
-  private MapState<String, Integer> partitionLoadState;
+  private ValueState<Boolean> stateLoadFlag;

Review comment:
       If we care about recordKey state only, this ValueState can be removed, 
right?




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

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to