richardstartin commented on a change in pull request #8411: URL: https://github.com/apache/pinot/pull/8411#discussion_r837962874
########## File path: pinot-core/src/main/java/org/apache/pinot/core/plan/AggregationPlanNode.java ########## @@ -178,6 +179,11 @@ private TransformOperator buildTransformOperatorForFilteredAggregates(BaseFilter BaseFilterOperator filterOperator = filterPlanNode.run(); // Use metadata/dictionary to solve the query if possible + if (canOptimizeFilteredCount(filterOperator, aggregationFunctions)) { + return new FastFilteredCountOperator(aggregationFunctions, filterOperator, _indexSegment.getSegmentMetadata()); + } + + // TODO: Use DataSourceMetadata when dictionary is unavailable so that e.g. MAX(col) can be optimized Review comment: Merge artifact -- 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