Skip to content

Conversation

@angelamayxie
Copy link
Contributor

@angelamayxie angelamayxie commented Jul 31, 2025

fixes dolthub/dolt#9615

We were not including null values when evaluating anti joins created from unnesting WHERE NOT EXISTS statements. This was causing us to return empty sets if there was a null value in the right side table of the anti join.

@angelamayxie angelamayxie changed the title Right column should not be skipped for nil comparisons in anti-joins created IncludeNulls join types for anti joins created from WHERE NOT EXISTS Aug 1, 2025
@angelamayxie angelamayxie changed the title created IncludeNulls join types for anti joins created from WHERE NOT EXISTS include null values when evaluating anti joins created from WHERE NOT EXISTS Aug 1, 2025
@angelamayxie angelamayxie marked this pull request as ready for review August 1, 2025 22:10
@angelamayxie angelamayxie requested a review from fulghum August 1, 2025 22:10
Copy link
Contributor

@fulghum fulghum left a comment

Choose a reason for hiding this comment

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

Nice work! I just had one question about one of the query plans that changed.

@angelamayxie angelamayxie merged commit 6bc9ba7 into main Aug 1, 2025
8 checks passed
@angelamayxie angelamayxie deleted the angela/antijoin branch August 1, 2025 22:53
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.

No results returned with "where not exists" subquery with inner join (Django queryset.exclude(a__b__isnull=False))

3 participants