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
with a as (
select null as id
union all
select 2 as id
)
select 1 as id
where id is not null
and id not in (
select id
from a
);
you would expect this to return 1 row. But it actually returns 0 rows. We need to either say that this is the correct behavior, or we need to fix it. The fix is just to add a WHERE ... IS NOT NULL in the subquery.
The text was updated successfully, but these errors were encountered:
Issue
Issue description
When running this SQL on Redshift:
you would expect this to return 1 row. But it actually returns 0 rows. We need to either say that this is the correct behavior, or we need to fix it. The fix is just to add a WHERE ... IS NOT NULL in the subquery.
The text was updated successfully, but these errors were encountered: