yihua commented on code in PR #6113:
URL: https://github.com/apache/hudi/pull/6113#discussion_r926262573
##########
hudi-client/hudi-spark-client/src/test/java/org/apache/hudi/index/bloom/TestHoodieBloomIndex.java:
##########
@@ -110,24 +116,35 @@ public void tearDown() throws Exception {
cleanupResources();
}
- private HoodieWriteConfig makeConfig(boolean rangePruning, boolean
treeFiltering, boolean bucketizedChecking) {
+ private HoodieWriteConfig makeConfig(
+ boolean rangePruning, boolean treeFiltering, boolean bucketizedChecking,
boolean useMetadataTable) {
+ // For the bloom index to use column stats and bloom filters from metadata
table,
+ // the following configs must be set to true:
+ // "hoodie.bloom.index.use.metadata"
+ // "hoodie.metadata.enable" (by default is true)
+ // "hoodie.metadata.index.column.stats.enable"
+ // "hoodie.metadata.index.bloom.filter.enable"
return HoodieWriteConfig.newBuilder().withPath(basePath)
.withIndexConfig(HoodieIndexConfig.newBuilder().bloomIndexPruneByRanges(rangePruning)
.bloomIndexTreebasedFilter(treeFiltering).bloomIndexBucketizedChecking(bucketizedChecking)
- .bloomIndexKeysPerBucket(2).build())
+
.bloomIndexKeysPerBucket(2).bloomIndexUseMetadata(useMetadataTable).build())
Review Comment:
Addressed.
--
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]