richardstartin commented on a change in pull request #8343: URL: https://github.com/apache/pinot/pull/8343#discussion_r830591658
########## File path: pinot-broker/src/main/java/org/apache/pinot/broker/requesthandler/BaseBrokerRequestHandler.java ########## @@ -559,6 +567,58 @@ private BrokerResponseNative handleSQLRequest(long requestId, String query, Json return brokerResponse; } + private void handleTimestampIndexOverride(PinotQuery pinotQuery) + throws JsonProcessingException { + Map<Integer, String> pushdownExpressions = new HashMap<>(); + for (Expression expression : pinotQuery.getSelectList()) { + getPushdownExpression(expression, pushdownExpressions); + if (!pushdownExpressions.isEmpty()) { + pinotQuery.getQueryOptions() + .put("pushdown.timestamp.index.expression", new ObjectMapper().writeValueAsString(pushdownExpressions)); Review comment: Constructing an ObjectMapper is extremely expensive, can you make this a static or instance member instead? Since they contain two interning tables it’s generally better to share one of these between the entire application, unless you need different settings. -- 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-unsubscr...@pinot.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org For additional commands, e-mail: commits-h...@pinot.apache.org