You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
where clause incorrectly reject NULL literal (by SQLancer-NoREC) #11248
DataFusion CLI v39.0.0
>select1 where null;
Error during planning: Cannot create filter with non-boolean predicate 'NULL' returning Null
This query should return an empty set instead of planning error:
NULL in SQL means the absence of a value, not a specific type.
In the above query, it should interpret NULL as a missing boolean value.
PostgreSQL reference:
postgres=# select 1 where null;?column?
----------
(0 rows)
DataFusion also exeucte it correctly if Null value is within a column
Activity
xinlifoobar commentedon Jul 4, 2024
This seems not an easy fix... It would break about 34 sqllogictests.