FrankChen021 commented on code in PR #13022:
URL: https://github.com/apache/druid/pull/13022#discussion_r965773240
##########
processing/src/main/java/org/apache/druid/query/QueryContexts.java:
##########
@@ -399,12 +398,12 @@ public static <T> Query<T> verifyMaxQueryTimeout(Query<T>
query, long maxQueryTi
public static <T> long getMaxQueuedBytes(Query<T> query, long defaultValue)
{
- return parseLong(query, MAX_QUEUED_BYTES_KEY, defaultValue);
+ return query.getContextAsLong(MAX_QUEUED_BYTES_KEY, defaultValue);
}
public static <T> long getMaxScatterGatherBytes(Query<T> query)
{
- return parseLong(query, MAX_SCATTER_GATHER_BYTES_KEY, Long.MAX_VALUE);
+ return query.getContextAsLong(MAX_SCATTER_GATHER_BYTES_KEY,
Long.MAX_VALUE);
Review Comment:
after this PR, only `getContextAsxxxx` series methods are used to get values.
--
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]