saurabhd336 commented on code in PR #8601:
URL: https://github.com/apache/pinot/pull/8601#discussion_r875595044


##########
pinot-segment-local/src/main/java/org/apache/pinot/segment/local/segment/creator/impl/SegmentColumnarIndexCreator.java:
##########
@@ -134,6 +139,20 @@ public void init(SegmentGeneratorConfig 
segmentCreationSpec, SegmentIndexCreatio
       invertedIndexColumns.add(columnName);
     }
 
+    Set<String> bloomFilterColumns = new HashSet<>();
+    for (String columnName : _config.getBloomFilterCreationColumns()) {
+      Preconditions.checkState(schema.hasColumn(columnName),
+          "Cannot create bloom filter for column: %s because it is not in 
schema", columnName);
+      bloomFilterColumns.add(columnName);
+    }
+
+    Set<String> rangeIndexColumns = new HashSet<>();
+    for (String columnName : _config.getRangeIndexCreationColumns()) {
+      Preconditions.checkState(schema.hasColumn(columnName),
+          "Cannot create bloom filter for column: %s because it is not in 
schema", columnName);

Review Comment:
   Ack



##########
pinot-segment-local/src/main/java/org/apache/pinot/segment/local/segment/creator/impl/SegmentColumnarIndexCreator.java:
##########
@@ -89,6 +92,8 @@ public class SegmentColumnarIndexCreator implements 
SegmentCreator {
   private SegmentGeneratorConfig _config;
   private Map<String, ColumnIndexCreationInfo> _indexCreationInfoMap;
   private final IndexCreatorProvider _indexCreatorProvider = 
IndexingOverrides.getIndexCreatorProvider();
+  private final Map<String, BloomFilterCreator> _bloomFilterCreatorMap = new 
HashMap<>();
+  private final Map<String, CombinedInvertedIndexCreator> 
_rangeIndexFilterCreatorMap = new HashMap<>();

Review Comment:
   Ack



-- 
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...@pinot.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org
For additional commands, e-mail: commits-h...@pinot.apache.org

Reply via email to