imply-cheddar commented on code in PR #12564:
URL: https://github.com/apache/druid/pull/12564#discussion_r881070951
##########
processing/src/main/java/org/apache/druid/query/Query.java:
##########
@@ -110,7 +117,24 @@
* after it is deserialized. This is because {@link BaseQuery#getContext()}
uses
* {@link QueryContext#getMergedParams()} for serialization, and queries
accept a map for deserialization.
*/
- QueryContext getQueryContext();
+ default QueryContext getQueryContext()
+ {
+ return IS_LEGACY_CONTEXT;
Review Comment:
From looking at the code in this PR, why not return `null` and do null tests?
--
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]