atris commented on a change in pull request #7916: URL: https://github.com/apache/pinot/pull/7916#discussion_r785770857
########## File path: pinot-core/src/main/java/org/apache/pinot/core/plan/AggregationPlanNode.java ########## @@ -62,57 +69,25 @@ public AggregationPlanNode(IndexSegment indexSegment, QueryContext queryContext) public Operator<IntermediateResultsBlock> run() { assert _queryContext.getAggregationFunctions() != null; - int numTotalDocs = _indexSegment.getSegmentMetadata().getTotalDocs(); - AggregationFunction[] aggregationFunctions = _queryContext.getAggregationFunctions(); + boolean hasFilteredPredicates = _queryContext.isHasFilteredAggregations(); - FilterPlanNode filterPlanNode = new FilterPlanNode(_indexSegment, _queryContext); - BaseFilterOperator filterOperator = filterPlanNode.run(); + Pair<FilterPlanNode, BaseFilterOperator> filterOperatorPair = Review comment: buildOperators has no code specific to filtered aggregations. It builds a generic pipeline of operators, and buildOperatorForFilteredAggregations does the actual specific code if filtered aggregations are present. -- 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