Skip to content

refactor: typed ScalarValue in encoder stats (#531) - #536

Merged
dfa1 merged 1 commit into
mainfrom
refactor/531-typed-stats
Oct 16, 2026
Merged

dfa1 merged 1 commit into
mainfrom
refactor/531-typed-stats

Conversation

@dfa1

@dfa1 dfa1 commented Oct 13, 2026

Copy link
Copy Markdown
Owner

Closes #531.

EncodeResult, CascadeStep, SegmentStats, and the min/max helpers (PrimitiveEncodingEncoder, ZoneMapStats, VarBinEncodingEncoder, ZoneMapStatCodec) carry ProtoScalarValue instead of serialized byte[]. Bytes are produced once, in buildArrayFlatBuffer. The array-record S6218 suppressions on the two carriers are gone. Sums stay byte[].

No wire change. ./mvnw test -pl writer -am and ./mvnw verify -pl integration -am pass. No CHANGELOG entry (internal refactor).

🤖 Generated with Claude Code

@dfa1
dfa1 force-pushed the refactor/531-typed-stats branch from bf4d2e2 to e628b48 Compare October 16, 2026 19:42
EncodeResult, CascadeStep, SegmentStats and the min/max helpers now hold
ProtoScalarValue; a MinMax record replaces the two-element stats array and
the zone-map sum stat is typed too. Serialization happens once at the
FlatBuffer boundary (VortexWriter#buildArrayFlatBuffer) and zone-map
pruning reads the typed value directly. No wire change.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@dfa1
dfa1 force-pushed the refactor/531-typed-stats branch from e628b48 to 8377226 Compare October 16, 2026 19:46
@dfa1
dfa1 merged commit 8794c2a into main Oct 16, 2026
7 checks passed
@dfa1
dfa1 deleted the refactor/531-typed-stats branch October 16, 2026 20:01
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.

EncodeResult stats: carry typed ScalarValue instead of serialized byte[]

1 participant