Skip to content

Fix #8252 union subset projection constant expression on EF#9273

Merged
michaelstaib merged 6 commits intomainfrom
mst/issue-8252
Mar 2, 2026
Merged

Fix #8252 union subset projection constant expression on EF#9273
michaelstaib merged 6 commits intomainfrom
mst/issue-8252

Conversation

@michaelstaib
Copy link
Copy Markdown
Member

@michaelstaib michaelstaib commented Feb 27, 2026

Fixes #8252
Closes #8716

Summary

  • add a regression test reproducing the union + UseOffsetPaging + UseProjection failure shape from the issue
  • fix abstract-type projection branch generation for empty branch selections (for example __typename-only branches)
  • avoid emitting parameter-independent new TDerived() in conditional branches, which EF pre-evaluates into a constant and rejects

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Feb 27, 2026

Fusion Gateway Performance Results

Progress: 0/6 benchmarks completed — this report updates as each job finishes.

Simple Composite Query

Req/s Err%
Constant 2 (50 VUs) pending pending
Ramping 2 (0-500-0 VUs) pending pending
Response Times
Min Med Avg P90 P95 Max
Constant 2 pending pending pending pending pending pending
Ramping 2 pending pending pending pending pending pending

Deep Recursion Query

Req/s Err%
Constant 2 (50 VUs) pending pending
Ramping 2 (0-500-0 VUs) pending pending
Response Times
Min Med Avg P90 P95 Max
Constant 2 pending pending pending pending pending pending
Ramping 2 pending pending pending pending pending pending

Variable Batching Throughput

Req/s Err%
Constant 2 (50 VUs) pending pending
Ramping 2 (0-500-0 VUs) pending pending
Response Times
Min Med Avg P90 P95 Max
Constant 2 pending pending pending pending pending pending
Ramping 2 pending pending pending pending pending pending

Runner 2 = benchmarking-2

Run 22506098033 • Commit 890b8ae • Sat, 28 Feb 2026 22:21:43 GMT

@michaelstaib michaelstaib added the 🎬 ready Ready to merge label Mar 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Union types: EF Core exception: The client projection contains a reference to a constant expression...

1 participant