geserdugarov commented on code in PR #17994:
URL: https://github.com/apache/hudi/pull/17994#discussion_r2726657756


##########
hudi-client/hudi-client-common/src/main/java/org/apache/hudi/config/HoodieIndexConfig.java:
##########
@@ -719,12 +719,22 @@ public Builder withBucketMinNum(int bucketMinNum) {
     }
 
     public Builder withIndexKeyField(String keyField) {
-      hoodieIndexConfig.setValue(BUCKET_INDEX_HASH_FIELD, keyField);
+      if (null != keyField && !keyField.isEmpty()) {

Review Comment:
   You're right, we need not null or empty, so switched to 
`StringUtils::nonEmpty`.



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