Skip to content

10.x: follow a text set operation through a scalar subquery in the guard's rewrite (port of #505) #510

Closed

Description

@CaffeinatedCoder

Problem

On main, PR #508 makes the guard's rewrite follow a text set operation through a scalar subquery (#505). On release/10.x, ….Select(o => o.Tags.Union(x)).FirstOrDefault() == target compares the unsorted array_cat. 10.3.0 threw for that query, so this is a regression in the unreleased 10.4.0.

Change

Cherry-pick PR #508's commits with -x into a PR against release/10.x: the IsDerived arm, the two UnionCanonicalityTests, and the seed.

Done when

On release/10.x, the tests pass on the EF Core 10.0.0 floor and on CI's newest-patch leg, they fail with the arm reverted, and the seed is caught.

Release

10.4.0. Fixed only on release/10.x, so close it by hand.

Activity

  1. added this to the 10.4.0 milestone on Oct 26, 2026
  2. added
    bugSomething isn't working
    area/value-setsValue set families and wrapper arities
    package/efcoreAffects CodoMetis.ValueRanges.EFCore.PostgreSQL
    severity/mediumInconsistency or failure in a narrow scenario
    on Oct 26, 2026
  3. added a commit that references this issue on Oct 26, 2026
  4. CaffeinatedCoder commented on Oct 26, 2026

    @CaffeinatedCoder
    OwnerAuthor

    Fixed on release/10.x by #514 (merged as 900934e). Closed by hand because Closes only acts on main.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/value-setsValue set families and wrapper aritiesbugSomething isn't workingpackage/efcoreAffects CodoMetis.ValueRanges.EFCore.PostgreSQLseverity/mediumInconsistency or failure in a narrow scenario

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions