shenyu0127 commented on code in PR #11188: URL: https://github.com/apache/pinot/pull/11188#discussion_r1278232062
########## pinot-common/src/main/java/org/apache/pinot/sql/parsers/CalciteSqlParser.java: ########## @@ -267,6 +270,35 @@ private static void validateDistinctQuery(PinotQuery pinotQuery) } } + /* + * Throws an exception if the filter's rhs has NULL because: + * - Predicate evaluator and pruning do not have NULL support. + * - It is not meaningful to have NULL in the filter's rhs. + * - For most of the filters (e.g. GREATER_THAN, LIKE), the rhs being NULL leads to no record matched. + * - For IN, adding NULL to the rhs list does not change the matched records. + * - For NOT IN, adding NULL to the rhs list leads to no record matched. + * - For "= NULL" and "!= NULL", we have the IS_NULL and IS_NOT_NULL as workarounds. Review Comment: You are right. Corrected the function comment. -- 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