Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,13 @@ public void shutDown() {
public BrokerResponse handleRequest(JsonNode request, @Nullable SqlNodeAndOptions sqlNodeAndOptions,
@Nullable RequesterIdentity requesterIdentity, RequestContext requestContext, @Nullable HttpHeaders httpHeaders)
throws Exception {
// Pinot installations may either use PinotClientRequest or this class in order to process a query that
// arrives via their custom container. The custom code may add its own overhead in either pre-processing
// or post-processing stages, and should be measured independently.
// In order to accommodate for both code paths, we set the request arrival time only if it is not already set.
if (requestContext.getRequestArrivalTimeMillis() <= 0) {
requestContext.setRequestArrivalTimeMillis(System.currentTimeMillis());
}
// Parse the query if needed
if (sqlNodeAndOptions == null) {
try {
Expand Down