Skip to content

Commit 11ed254

Browse files
committed
Fix bucket index test
1 parent d8d2f37 commit 11ed254

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

hudi-client/hudi-spark-client/src/test/java/org/apache/hudi/index/bucket/TestHoodieSimpleBucketIndex.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,13 +78,13 @@ public void tearDown() throws Exception {
7878
public void testBucketIndexValidityCheck() {
7979
Properties props = new Properties();
8080
props.setProperty(HoodieIndexConfig.BUCKET_INDEX_HASH_FIELD.key(), "_row_key");
81+
props.setProperty(KeyGeneratorOptions.RECORDKEY_FIELD_NAME.key(), "uuid");
8182
assertThrows(HoodieIndexException.class, () -> {
8283
HoodieIndexConfig.newBuilder().fromProperties(props)
8384
.withIndexType(HoodieIndex.IndexType.BUCKET)
8485
.withBucketIndexEngineType(HoodieIndex.BucketIndexEngineType.SIMPLE)
8586
.withBucketNum("8").build();
8687
});
87-
props.setProperty(KeyGeneratorOptions.RECORDKEY_FIELD_NAME.key(), "uuid");
8888
props.setProperty(HoodieIndexConfig.BUCKET_INDEX_HASH_FIELD.key(), "uuid");
8989
HoodieIndexConfig.newBuilder().fromProperties(props)
9090
.withIndexType(HoodieIndex.IndexType.BUCKET)

0 commit comments

Comments
 (0)