You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pinot.apache.org by "swaminathanmanish (via GitHub)" <gi...@apache.org> on 2023/04/11 04:40:25 UTC
[GitHub] [pinot] swaminathanmanish commented on a diff in pull request #10589: no error metric for queries where all segments are pruned
swaminathanmanish commented on code in PR #10589:
URL: https://github.com/apache/pinot/pull/10589#discussion_r1162293068
##########
pinot-broker/src/main/java/org/apache/pinot/broker/requesthandler/BaseBrokerRequestHandler.java:
##########
@@ -728,6 +723,21 @@ private BrokerResponseNative handleRequest(long requestId, String query,
}
}
+ private BrokerResponseNative getEmptyBrokerOnlyResponse(long requestId, String query,
+ RequesterIdentity requesterIdentity, RequestContext requestContext, PinotQuery pinotQuery, String tableName) {
+ if (pinotQuery.isExplain()) {
+ // EXPLAIN PLAN results to show that query is evaluated exclusively by Broker.
+ return BrokerResponseNative.BROKER_ONLY_EXPLAIN_PLAN_OUTPUT;
+ }
+
+ // Send empty response since we don't need to evaluate either offline or realtime request.
+ BrokerResponseNative brokerResponse = BrokerResponseNative.empty();
Review Comment:
Would adding **_brokerMetrics** here be useful as well ?
--
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@pinot.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org