You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@druid.apache.org by GitBox <gi...@apache.org> on 2022/08/05 21:10:03 UTC
[GitHub] [druid] suneet-s commented on a diff in pull request #12833: Introduce defaultOnDiskStorage config for Group By
suneet-s commented on code in PR #12833:
URL: https://github.com/apache/druid/pull/12833#discussion_r939226814
##########
processing/src/main/java/org/apache/druid/query/Query.java:
##########
@@ -129,6 +130,8 @@ default QueryContext getQueryContext()
boolean getContextBoolean(String key, boolean defaultValue);
+ HumanReadableBytes getContextHumanReadableBytes(String key, HumanReadableBytes defaultValue);
Review Comment:
Since `Query` is marked as an `ExtensionPoint` I think we should introduce a default implementation of this method to help users who may have extended this class upgrade to this version of Druid without having to make a modification to their extension. The default implementation could be something like
```
default HumanReadableBytes getContextHumanReadableBytes(String key, HumanReadableBytes defaultValue) {
if (getQueryContext != null) {
return getQueryContext().getAsHumanReadableBytes(key, defaultValue);
}
}
```
--
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: commits-unsubscribe@druid.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org