weixiangsun commented on a change in pull request #8029: URL: https://github.com/apache/pinot/pull/8029#discussion_r806333962
########## File path: pinot-core/src/main/java/org/apache/pinot/core/query/request/context/utils/QueryContextUtils.java ########## @@ -47,16 +52,22 @@ public static boolean isSelectionQuery(QueryContext query) { * Selection-only query at this moment means selection query without order-by. */ public static boolean isSelectionOnlyQuery(QueryContext query) { - return query.getAggregationFunctions() == null && query.getOrderByExpressions() == null; + return query.getAggregationFunctions() == null + && query.getOrderByExpressions() == null + && !GapfillUtils.isGapfill(query); } /** - * Returns {@code true} if the given query is an aggregation query, {@code false} otherwise. + * Returns {@code trgue} if the given query is an agregation query, {@code false} otherwise. */ public static boolean isAggregationQuery(QueryContext query) { - AggregationFunction[] aggregationFunctions = query.getAggregationFunctions(); - return aggregationFunctions != null && (aggregationFunctions.length != 1 - || !(aggregationFunctions[0] instanceof DistinctAggregationFunction)); + if (GapfillUtils.isGapfill(query)) { Review comment: Done -- 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