cryptoe commented on code in PR #16358:
URL: https://github.com/apache/druid/pull/16358#discussion_r1592644029


##########
extensions-core/multi-stage-query/src/main/java/org/apache/druid/msq/sql/MSQTaskQueryMaker.java:
##########
@@ -283,6 +283,10 @@ public QueryResponse<Object[]> runQuery(final DruidQuery 
druidQuery)
 
     MSQTaskQueryMakerUtils.validateRealtimeReindex(querySpec);
 
+    final Map<String, Object> context = new HashMap<>();
+    context.put(PlannerContext.CTX_LOOKUP_LOADING_MODE, 
plannerContext.getLookupLoadingSpec().getMode());
+    context.put(PlannerContext.CTX_LOOKUPS_TO_LOAD, 
plannerContext.getLookupLoadingSpec().getLookupsToLoad());

Review Comment:
   We should only set this if the mode is ONLY_REQUIRED no ?



##########
sql/src/main/java/org/apache/druid/sql/calcite/planner/PlannerContext.java:
##########
@@ -140,6 +144,8 @@ public class PlannerContext
   // set of attributes for a SQL statement used in the EXPLAIN PLAN output
   private ExplainAttributes explainAttributes;
   private PlannerLookupCache lookupCache;
+  // Lookup loading spec for a given task

Review Comment:
   ```suggestion
   ```
   The comment does not add any value. 
   Lookups can be used for native query engine validation so lets not put this 
comment here. 



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