yashmayya opened a new issue, #16228:
URL: https://github.com/apache/pinot/issues/16228

   - Consider an ingestion transform function defined like - 
`caseWhen(contains(col, 'abc') OR contains(col, 'xyz'), 'yes', 'no')`.
   - If `col` is nullable and contains a `null` value, `contains` will return 
`null` (because the `contains` scalar function doesn't have nullable parameters 
- i.e., it is null intolerant and will always return `null` if any of its 
arguments is `null`).
   - This will result in an NPE here - 
https://github.com/apache/pinot/blob/7122e24e9cde07461d84c8584302f6d7ec80c441/pinot-segment-local/src/main/java/org/apache/pinot/segment/local/function/InbuiltFunctionEvaluator.java#L163-L164
   - The `AND` / `OR` / `NOT` execution nodes should handle `null` values 
following SQL semantics - for instance, `OR` returns `true` if any value is 
`true` (regardless of `null` presence / absence), `false` if all values are 
`false` and there are no `null` values, `null` otherwise.


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