Skip to content

Update sqlite expectation for NOT IN list containing NULL (apache/datafusion#26548) - #24

Merged
alamb merged 1 commit into
apache:mainfrom
alamb:alamb/in-list-null-filter
Oct 28, 2026
Merged

alamb merged 1 commit into
apache:mainfrom
alamb:alamb/in-list-null-filter

Conversation

@alamb

@alamb alamb commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

Update the expected results for a query that now runs after the improvements in

apache/datafusion#26548 teaches EliminateFilter that `x NOT IN (..., NULL)`
can never be TRUE, so the filter becomes an empty relation. The divide by
zero inside the IN list is therefore never evaluated and the query now
returns no rows, which matches the original sqlite expected result.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

@raghavyadav01 raghavyadav01 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Checked against #26548: with a NULL in the NOT IN list the predicate can never be true, so the filter folds to false and col0 / 0 is never evaluated. The empty result is also what SQLite itself returns for this query, so this removes a DataFusion-only override rather than adding one.

@alamb

alamb commented Oct 28, 2026

Copy link
Copy Markdown
Contributor Author

Thakank you @Jefffrey

@alamb
alamb merged commit 64e2529 into apache:main Oct 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants