Honor Where clauses on the inner source of GroupJoin#4331
Merged
jeremydmiller merged 1 commit intoJasperFx:masterfrom May 6, 2026
Merged
Honor Where clauses on the inner source of GroupJoin#4331jeremydmiller merged 1 commit intoJasperFx:masterfrom
Where clauses on the inner source of GroupJoin#4331jeremydmiller merged 1 commit intoJasperFx:masterfrom
Conversation
Where filtering for the inner source of the GroupJoinWhere clauses on the inner source of GroupJoin
Member
This was referenced May 7, 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.

Wherepredicates chained onto the innerIQueryablepassed toGroupJoinwere silently dropped during SQL compilation. They are now extracted from the inner source expression tree and applied to the inner CTE so filtering happens before the join.Problem
Given a query like:
The
Where(o => o.Status == "Shipped")was completely ignored — the inner CTE was built straight fromOrderstorage with only the default tenant/soft-delete filters.