JackieTien97 commented on code in PR #13997:
URL: https://github.com/apache/iotdb/pull/13997#discussion_r1830730914


##########
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/relational/planner/optimizations/PushAggregationIntoTableScan.java:
##########
@@ -56,7 +56,7 @@ public class PushAggregationIntoTableScan implements 
PlanOptimizer {
   @Override
   public PlanNode optimize(PlanNode plan, PlanOptimizer.Context context) {
     if (!(context.getAnalysis().getStatement() instanceof Query)
-        || context.getAnalysis().noAggregates()) {
+        || !context.getAnalysis().isAggregationQuery()) {

Review Comment:
   using containsAggregationQuery



##########
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/relational/planner/optimizations/TransformAggregationToStreamable.java:
##########
@@ -50,7 +50,7 @@ public class TransformAggregationToStreamable implements 
PlanOptimizer {
   @Override
   public PlanNode optimize(PlanNode plan, PlanOptimizer.Context context) {
     if (!(context.getAnalysis().getStatement() instanceof Query)
-        || context.getAnalysis().noAggregates()) {
+        || !context.getAnalysis().isAggregationQuery()) {

Review Comment:
   containsAggregationQuery



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to