jonahgao opened a new issue, #7495:
URL: https://github.com/apache/arrow-datafusion/issues/7495

   ### Describe the bug
   
   The nullability calculation of `InListExpr` is incorrect, leading to 
unexpected errors in some queries.
   
   
https://github.com/apache/arrow-datafusion/blob/dfd685187dba7a44f47ff2a36dc09651f7fd2a1f/datafusion/physical-expr/src/expressions/in_list.rs#L327-L329
   
   ### To Reproduce
   
   ```sh
   DataFusion CLI v30.0.0
   ❯ create table t(a int) as values(1), (null);
   0 rows in set. Query took 0.048 seconds.
   
   ❯ select 1 in (a, 2) from t;
   Arrow error: Invalid argument error: Column 'Int64(1) IN (Map { iter: 
Iter([Column(Column { relation: Some(Bare { table: "t" }), name: "a" }), 
Literal(Int64(2))]) })' is declared as non-nullable but contains null values
   
   ```
   
   ### Expected behavior
   
   _No response_
   
   ### Additional context
   
   _No response_


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to