Skip to content

10.x: translate Length on Int32Range and Int64Range (port of #405) #438

Closed

Description

@CaffeinatedCoder

Problem

Length on Int32Range and Int64Range runs as SQL on main since #405 (PR #437, merged as 67628e2). On release/10.x it still runs in memory only, so a 10.x query can't filter or order by it.

Change

Cherry-pick 596766d with -x into a PR against release/10.x:

  • ValueRangesMemberTranslator, the public ValueRangesMemberTranslatorPlugin and its registration.
  • IntegerLengthTranslationTests, IntegerLengthParityTests (an oracle, with the seed integer-length-empty-measures-null.patch), and the client-only tests moved to DecimalRange.Length.
  • translation-support.json, claims E31 and E73, docs/efcore.md#what-runs-where, docs/ranges.md and the EF Core README.
  • The changelog row goes under [10.3.0] ### Added in the root and EF Core changelogs, not under main's [11.0.0-preview.1].

IntegerLengthParityTests uses CompositionRunner.Judge, whose Composition/ helpers came to this line with #430. The test brings its own live coverage of #408's parity list, because 10.x has none of the composition sweeps.

Done when

On release/10.x, the translation and parity tests pass on the EF floor and on the newest-patch leg (PostgreSQL 16 and 18). The seed fails the parity test. translation-support.json classifies both members as server, and the translation-support probe passes.

Release

### Added in 10.3.0. Fixed only on release/10.x, so close it by hand.

Activity

  1. added this to the 10.3.0 milestone on Oct 25, 2026
  2. added
    enhancement
    area/ranges
    package/efcore
    on Oct 25, 2026
  3. CaffeinatedCoder commented on Oct 25, 2026

    @CaffeinatedCoder
    OwnerAuthor

    PR #439.

  4. CaffeinatedCoder commented on Oct 25, 2026

    @CaffeinatedCoder
    OwnerAuthor

    Fixed on release/10.x by PR #439 (merged as e022712). Length on Int32Range and Int64Range runs as SQL on this line too, and IntegerLengthParityTests holds it. CI's EF Core 10.0.13 legs passed on PostgreSQL 16 and 18. Closed by hand, because Closes #n acts only on main.

  5. added a commit that references this issue on Oct 25, 2026
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/rangesenhancementpackage/efcore

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions