Repository navigation
docs: name the two known differences 10.2.0 ships with (10.x, #397) - #398
Merged
Merged
Conversation
A value set Union or Remove over NULL loads a value in a projection where a filter treats it as NULL (#360, port #395), and RangeLowerBoundComparer in a query compares in the range order because EF Core rewrites any Compare(a, b) (#385, port #396). Both stay out of 10.2.0; docs/efcore.md now names each with its workaround and fix, and docs/ranges.md links the comparer entry. 10.x only: main fixes both before 11.0.0. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This was referenced Oct 24, 2026
Closed
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.
Closes #397
Problem
10.2.0 (#358) defers two silent differences between a query and the same LINQ over the loaded rows, and the docs mention neither:
UnionorRemoveover a NULL operand loads a value in a projection, where a filter treats it as NULL (Value set Union is declared NULL only for a NULL operand, but array_cat isn't strict: a filter and a projection disagree on a NULL column #360, 10.x port 10.x: value set Union and Remove over a NULL operand project a value instead of NULL (port of #360) #395);RangeLowerBoundComparer.Comparein a query compares in the range order, because EF Core rewrites anyCompare(a, b)(RangeLowerBoundComparer.Compare runs as SQL in the range order: EF Core rewrites any Compare(a, b) to the natural comparison #385, 10.x port 10.x: RangeLowerBoundComparer.Compare in a query runs in the range order (port of #385) #396; Any method namedCompareis translated as the natural comparison of its arguments, so a comparer's own ordering is silently ignored (StringComparer.OrdinalIgnoreCase, customIComparer<T>) dotnet/efcore#39402).Change
docs/efcore.md: a new "Known differences in 10.2.0" part at the end of "What runs where", with each case, its workaround and the port issue that fixes it.docs/ranges.md#sort-ranges-the-way-a-set-does: one sentence linking the comparer entry.Docs:row under### Fixedin[10.2.0]. It linksrelease/10.x'sefcore.md, becausemainwon't get this part: both fixes land there before 11.0.0. Each port removes its entry.Tests
Docs only. The workarounds and the SQL shown were measured on
release/10.xagainst PostgreSQL 16, on EF Core 10.0.0 and on 10.0.13 with Npgsql 10.0.3, with a scratch test (not committed):x == null ? null : x.Union(o)andlabel == null ? null : tags.Remove(label)project NULL for the NULL rows, and the plain calls projectoandtags.comparer.Compare(r.Period, p) == 0becomesWHERE r."Period" = @pand selects one row where memory selects three.The conventions (408) and ASP.NET Core (92) tests pass.
Fixed only on
release/10.x, so close #397 by hand after the merge (#365).🤖 Generated with Claude Code