-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Prepare MSQ/Dart to execute QueryDefinitions planned upfront #17895
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
return query; | ||
} | ||
|
||
public String getId() |
Check notice
Code scanning / CodeQL
Missing Override annotation Note
MSQSpec.getId
|
||
public interface MSQTerminalStageSpecFactory | ||
{ | ||
/** | ||
* Creates a {@link TerminalStageSpec} which determines the final of a query. | ||
*/ | ||
TerminalStageSpec createTerminalStageSpec(DruidQuery druidQuery, PlannerContext plannerContext); | ||
TerminalStageSpec createTerminalStageSpec(PlannerContext plannerContext); |
Check notice
Code scanning / CodeQL
Useless parameter Note
@@ -236,17 +244,26 @@ | |||
|
|||
// This flag is to ensure backward compatibility, as brokers are upgraded after indexers/middlemanagers. | |||
nativeQueryContextOverrides.put(MultiStageQueryContext.WINDOW_FUNCTION_OPERATOR_TRANSFORMATION, true); | |||
boolean isReindex = MSQControllerTask.isReplaceInputDataSourceTask(druidQuery.getQuery(), destination); |
Check warning
Code scanning / CodeQL
Dereferenced variable may be null Warning
druidQuery
this
Variable
druidQuery
this
LegacyMSQSpec.builder() | ||
.query(druidQuery==null?null:druidQuery.getQuery().withOverriddenContext(nativeQueryContextOverrides)) |
Check notice
Code scanning / CodeQL
Deprecated method or constructor invocation Note
These changes aim to center the MSQ/Dart execution around the
QueryDefinition
- and prepares for a possible future removal of theQuery
object from theMSQSpec
object.MSQSpec
toLegacyMSQSpec
MSQSpec
containsQueryDefinition
MSQSpec
; important exception is that the task retains the oldContext#makeQueryKitSpec
to be a factory instead