cryptoe commented on code in PR #18350:
URL: https://github.com/apache/druid/pull/18350#discussion_r2249136109
##########
extensions-core/multi-stage-query/src/main/java/org/apache/druid/msq/util/MultiStageQueryContext.java:
##########
@@ -377,9 +377,17 @@ public static boolean removeNullBytes(final QueryContext
queryContext)
return queryContext.getBoolean(CTX_REMOVE_NULL_BYTES,
DEFAULT_REMOVE_NULL_BYTES);
}
+ public static boolean isDartQuery(final QueryContext queryContext)
+ {
+ return queryContext.get(QueryContexts.CTX_DART_QUERY_ID) != null;
+ }
public static MSQSelectDestination getSelectDestination(final QueryContext
queryContext)
{
+ if (isDartQuery(queryContext)) {
+ // Dart does not support any other destination.
+ return MSQSelectDestination.TASKREPORT;
Review Comment:
Lets add a log.warn here that we donot support any other destination than
task report in DART.
--
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]