Skip to content

Compile time operands and preserve nonfinite and compensated values - #500

Closed
zzylol wants to merge 1 commit into
fix/typed-precompute-identityfrom
feat/handoff-physical-coverage
Closed

zzylol wants to merge 1 commit into
fix/typed-precompute-identityfrom
feat/handoff-physical-coverage

Conversation

@zzylol

@zzylol zzylol commented Sep 30, 2026 •

Copy link
Copy Markdown
Contributor

Stacked on #499.

Why

Planner rejected runtime time() operands, lost non-finite literals during JSON persistence, and lost small increments in stored exact sums.

What

Compile evaluation-time scalar sources, share explicit NaN/Inf literal encoding between logical and physical values, and retain Kahan-Neumaier compensation in the versioned SumV2 exact state. Update coverage documentation and the stale corpus bool/fill note.

Before this PR

a + time() failed native compilation; vector(NaN) failed plan JSON decoding; storing [1e16, 1] and merging [-1e16] returned zero.

After this PR

The same queries compile and persist correctly, and the merged exact sum is one. Old uncompensated Sum payloads are rejected explicitly; deployments must bump their surrounding persisted format.

Validation

All three regressions failed before their fixes and passed after. Added direct vector-literal typing and Inf/NaN sum review regressions. Formatting, workspace all-target clippy with warnings denied, and full workspace tests pass.

🤖 Generated with Claude Code

…values

Add query-scoped time scalars, lossless non-finite literal JSON encoding, and compensated SumV2 state with explicit legacy rejection. Correct the stale bool/fill corpus note.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@zzylol
zzylol force-pushed the fix/typed-precompute-identity branch from 9243647 to a480a12 Compare September 30, 2026 20:25
@zzylol
zzylol force-pushed the feat/handoff-physical-coverage branch from 7856e25 to f2d8cdd Compare September 30, 2026 20:25
@zzylol

zzylol commented Oct 1, 2026

Copy link
Copy Markdown
Contributor Author

Included in the squash merge of #507 into main (79f3587).

@zzylol zzylol closed this Oct 1, 2026
@milindsrivastava1997
milindsrivastava1997 deleted the feat/handoff-physical-coverage branch November 4, 2026 16:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant