danny0405 commented on code in PR #6636: URL: https://github.com/apache/hudi/pull/6636#discussion_r979338893
########## hudi-client/hudi-client-common/src/main/java/org/apache/hudi/config/HoodieIndexConfig.java: ########## @@ -674,6 +685,12 @@ public EngineType getEngineType() { private void validateBucketIndexConfig() { if (hoodieIndexConfig.getString(INDEX_TYPE).equalsIgnoreCase(HoodieIndex.IndexType.BUCKET.toString())) { + if (HoodieIndex.BucketIndexEngineType.RANGE_BUCKET.toString().equalsIgnoreCase(hoodieIndexConfig.getString(BUCKET_INDEX_ENGINE_TYPE))) { + if (hoodieIndexConfig.getStringOrDefault(KeyGeneratorOptions.RECORDKEY_FIELD_NAME).contains(",")) { + throw new HoodieIndexException("Range Bucket index only support single-record-key. Best auto-increment key."); + } + return; Review Comment: `single-record-key` -> `single record key field` -- 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: commits-unsubscr...@hudi.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org