File tree Expand file tree Collapse file tree
hudi-client/hudi-spark-client/src/test/java/org/apache/hudi/index/bucket Expand file tree Collapse file tree Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments