amrishlal commented on issue #9820:
URL: https://github.com/apache/pinot/issues/9820#issuecomment-1324397213

   > After a second thought, should we consider handling it in the 
PredicateEvaluatorFactory where the data type is already known? That way we can 
also handle arbitrary expressions on the left-hand side.
   
   If LHS is an expression, then things seem to work as in the statement 
`select runs from baseballStats where 2*runs IN (310.0, 300.0)`. I think this 
works because, the LHS is of type DOUBLE and hence 
`BaseRawValueBasedPredicateEvaluator.newRawValueBasedEvaluator` converts all IN 
clause values into DOUBLE and converting any numerical value to DOUBLE is a 
valid conversion in Pinot.
   
   However, `select runs from baseballStats where runs IN (310.0, 300.0)` fails 
in `ColumnValueSegmentPruner.pruneInPredicate` because LHS is an INT column and 
we can't convert 310.0 and 300.0 to INT.


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

Reply via email to