You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pinot.apache.org by GitBox <gi...@apache.org> on 2022/08/12 07:34:07 UTC
[GitHub] [pinot] Jackie-Jiang commented on a diff in pull request #9202: Avoid parsing query multiple times
Jackie-Jiang commented on code in PR #9202:
URL: https://github.com/apache/pinot/pull/9202#discussion_r944191022
##########
pinot-broker/src/main/java/org/apache/pinot/broker/requesthandler/BaseBrokerRequestHandler.java:
##########
@@ -190,26 +191,34 @@ public BrokerResponseNative handleRequest(JsonNode request, @Nullable RequesterI
if (sql == null) {
throw new BadQueryRequestException("Failed to find 'sql' in the request: " + request);
}
- return handleRequest(requestId, sql.asText(), request, requesterIdentity, requestContext);
+ String query = sql.asText();
+ requestContext.setQuery(query);
+ return handleRequest(requestId, query, sqlNodeAndOptions, compilationStartTimeNs, request, requesterIdentity,
+ requestContext);
}
- private BrokerResponseNative handleRequest(long requestId, String query, JsonNode request,
+ private BrokerResponseNative handleRequest(long requestId, String query,
+ @Nullable SqlNodeAndOptions sqlNodeAndOptions, long compilationStartTimeNs, JsonNode request,
Review Comment:
Wanted to keep the existing behavior. Added `compilationStartTimeNs` into `SqlNodeAndOptions` to keep the interface clean
--
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