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


##########
extensions-core/multi-stage-query/src/main/java/org/apache/druid/msq/util/MultiStageQueryContext.java:
##########
@@ -197,10 +196,7 @@ public static int getMaxNumTasks(final QueryContext 
queryContext)
 
   public static Object getDestination(final QueryContext queryContext)
   {
-    return queryContext.get(
-        CTX_DESTINATION,
-        DEFAULT_DESTINATION
-    );
+    return queryContext.get(CTX_DESTINATION);

Review Comment:
   Yes, this is a minor refactor, the default destination is null, however, we 
needn't supply null to the default value in queryContext.get, as that's what 
queryContext.get() returns if it doesn't find the context param that we have 
requested. 



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