Conversation
…ioning is not optimal. (#4431) ## What Force the "preserved" side of a semi/anti join to be partitioned, even if is smaller than the non-preserved side(s). ## Why Currently, when the joinscan would not be able to use optimal partitioning for a semi/anti join, it refuses to run, with: > JoinScan not used: SEMI JOIN requires the left side to be the largest source This is reasonable, but the problem is that this is based on estimates that change based on the data distribution and WHERE clause selectivity, rather than based on the shape of the query itself. That means that if you've written a query that uses `pdb.score` and tested it on a particular set of data, it might begin failing (with an "Unsupported query shape" error) on a different set of data. ## How Add and use `with_forced_partitioning`. (cherry picked from commit 0b20263)
stuhood
approved these changes
Mar 19, 2026
stuhood
approved these changes
Mar 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Backport of #4431 to
0.22.x.