Ian Cook created ARROW-17090:
--------------------------------

             Summary: [C++] Add null_if kernel
                 Key: ARROW-17090
                 URL: https://issues.apache.org/jira/browse/ARROW-17090
             Project: Apache Arrow
          Issue Type: Improvement
          Components: C++
            Reporter: Ian Cook


Add a binary kernel {{null_if(x, y)}} that returns {{null}} if {{x}} equals 
{{y}} , otherwise returns {{x}}.

This function is commonly found in many databases and query engines and is 
typically named {{nullif}}. For example: 
[PostgreSQL|https://www.postgresql.org/docs/15/functions-conditional.html#FUNCTIONS-NULLIF],
 
[Impala|https://impala.apache.org/docs/build/html/topics/impala_conditional_functions.html#conditional_functions__nullif],
 [Snowflake|https://docs.snowflake.com/en/sql-reference/functions/nullif.html].



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to