Skip to content

10.x: translate Clamp on Int32Range, Int64Range and DecimalRange (port of #406) #441

Closed

Description

@CaffeinatedCoder

Problem

Clamp on Int32Range, Int64Range and DecimalRange runs as SQL on main since #406 (PR #440, merged as 84dc121). On release/10.x it still runs in memory only, so a 10.x query can't filter or order by a clamped value.

Change

Cherry-pick 5ffc7b6 with -x into a PR against release/10.x:

  • The Clamp arm in ValueRangesMethodCallTranslator.
  • ClampTranslationTests, ClampParityTests (an oracle, with the seed clamp-reads-the-stored-exclusive-upper-bound.patch), and the client-only tests moved to DateRange.Clamp.
  • translation-support.json's except map, claims E31 and E74, docs/efcore.md#what-runs-where, docs/ranges.md and the EF Core README.
  • The changelog row goes under [10.3.0] ### Added, after the Length row from 10.x: translate Length on Int32Range and Int64Range (port of #405) #438.

Done when

On release/10.x, the translation and parity tests pass on the EF floor and the newest-patch leg (PostgreSQL 16 and 18). The seed fails the parity test, and the translation-support probe passes with the three closed types server.

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 #442.

  4. added 2 commits that reference this issue on Oct 25, 2026
  5. CaffeinatedCoder commented on Oct 25, 2026

    @CaffeinatedCoder
    OwnerAuthor

    Fixed on release/10.x by PR #442 (merged as f83dc29). Clamp on Int32Range, Int64Range and DecimalRange runs as SQL on this line too, and ClampParityTests holds it. Closed by hand, because Closes #n acts only 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/rangesenhancementpackage/efcore

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions