Skip to content

Tests: sweep typed filters and typed expression indexes against EF Core's ToQueryString #101

Closed

Description

@CaffeinatedCoder

Problem

A typed filter or typed expression index is useful only if it renders the way EF Core's query translation renders the same lambda: PostgreSQL uses an expression index only for a query whose expression matches, and a filter with different null semantics indexes different rows. Each divergence so far was found one at a time, by reading:

The existing ToQueryString() comparisons (NpgsqlTypedFilterTests, NpgsqlLinqExpressionIndexTests, NpgsqlJsonMemberRenderingTests) cover hand-picked lambdas. NpgsqlLinqIndexTranslator is the least-covered file in the repository: 138 of its 548 branches never run.

Change

A differential sweep, in the manner of CodoMetis.ValueRanges' ShapeMatrixParityTests:

Done when

The sweep runs in the unit suite, every disagreement it finds is fixed or waived with a reason, and the four seeds fail it.

Activity

  1. added this to the 5.5.0 milestone on Oct 20, 2026
  2. added
    tests
    package/postgresql
    area/indexes
    area/expression-indexes
    area/constraints
    on Oct 20, 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/constraintsarea/expression-indexesarea/indexespackage/postgresqltests

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions