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


##########
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:
   Looking at the TooManyColumnsFault, I think that we can also go ahead with 
the second proposition since that is also imposed at a per-stage level, which 
might not correspond to the final result that the user expects. (The wording 
might need to change though).



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