adarshsanjeev commented on code in PR #13352:
URL: https://github.com/apache/druid/pull/13352#discussion_r1020887844


##########
extensions-core/multi-stage-query/src/main/java/org/apache/druid/msq/exec/QueryValidator.java:
##########
@@ -55,6 +57,15 @@ public static void validateQueryDef(final QueryDefinition 
queryDef)
         throw new ISE("Number of workers must be greater than 0");
       }
     }
+
+    // Check if the number of columns in the query's CLUSTERED BY clause donot 
exceed the limit
+    ClusterBy queryClusteredBy = 
queryDef.getFinalStageDefinition().getClusterBy();

Review Comment:
   Does only the final stage lead to an OOM? Wouldn't it be possible for more 
cluster by columns to be present in earlier stages than the final one?



-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to