snleee commented on a change in pull request #3725: Replace partition ranges
with partitions
URL: https://github.com/apache/incubator-pinot/pull/3725#discussion_r250034581
##########
File path:
pinot-core/src/main/java/org/apache/pinot/core/query/pruner/PartitionSegmentPruner.java
##########
@@ -95,25 +94,19 @@ public boolean pruneSegment(FilterQueryTree
filterQueryTree, Map<String, ColumnM
// Leaf node
String column = filterQueryTree.getColumn();
- ColumnMetadata metadata = columnMetadataMap.get(column);
- if (metadata == null) {
- return false;
+ ColumnMetadata columnMetadata = columnMetadataMap.get(column);
+ // NOTE: should have already been pruned in DataSchemaSegmentPruner
Review comment:
This will change the behavior. I have checked that `DataSchemaSegmentPruner`
is checking if all columns from the query exists in the query request. Checking
column is enough for checking column metadata existence?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]