amrishlal commented on a change in pull request #6957:
URL: https://github.com/apache/incubator-pinot/pull/6957#discussion_r637165379



##########
File path: 
pinot-core/src/main/java/org/apache/pinot/core/query/optimizer/QueryOptimizer.java
##########
@@ -59,11 +62,13 @@ public void optimize(BrokerRequest brokerRequest, @Nullable 
Schema schema) {
    */
   public void optimize(PinotQuery pinotQuery, @Nullable Schema schema) {
     Expression filterExpression = pinotQuery.getFilterExpression();
-    if (filterExpression != null) {
-      for (FilterOptimizer filterOptimizer : FILTER_OPTIMIZERS) {
+    for (FilterOptimizer filterOptimizer : FILTER_OPTIMIZERS) {
+      if (filterExpression != null && filterExpression.getType() == 
ExpressionType.FUNCTION) {

Review comment:
       +1




-- 
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.

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

Reply via email to