MeihanLi commented on code in PR #17177:
URL: https://github.com/apache/pinot/pull/17177#discussion_r2624684162
##########
pinot-common/src/main/java/org/apache/pinot/common/utils/config/QueryOptionsUtils.java:
##########
@@ -167,6 +167,10 @@ public static boolean isCollectGcStats(Map<String, String>
queryOptions) {
return
Boolean.parseBoolean(queryOptions.get(QueryOptionKey.COLLECT_GC_STATS));
}
+ public static String getQueryHash(Map<String, String> queryOptions) {
+ return queryOptions.getOrDefault(QueryOptionKey.QUERY_HASH,
CommonConstants.Broker.DEFAULT_QUERY_HASH);
+ }
Review Comment:
There is already a broker-level option to enable it by default. Check
CommonConstants.java, we can enable it on broker by setting
`pinot.broker.enable.query.fingerprinting = true`
--
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]