Repository navigation
[Variant] Preserve fixed-point JSON decimals - #11415
Draft
osipovartem wants to merge 4 commits into
Draft
osipovartem wants to merge 4 commits into
osipovartem wants to merge 4 commits into
Conversation
osipovartem
force-pushed
the
upstream-variant-decimal-json
branch
from
October 23, 2026 22:56
9ea9b30 to
da9bf1a
Compare
osipovartem
force-pushed
the
upstream-variant-decimal-json
branch
from
October 23, 2026 23:43
da9bf1a to
f6b5335
Compare
8 of 35 tasks
osipovartem
force-pushed
the
upstream-variant-decimal-json
branch
from
November 18, 2026 16:51
f6b5335 to
97150fd
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
Preserve fixed-point JSON numbers and integers wider than
i64as exact VariantDecimal4/8/16 values instead of rounding through
Double. Exponent notation andvalues outside the Variant decimal range retain the floating-point fallback.
Change
fractional zeros only when the coefficient or scale otherwise cannot fit.
-0,-0.0, and-0.00.string-versus-
ValueAPI behavior.Review Status
Draft: stacked on #11409. Refreshed onto its actual head
749ede88d; thedecimal-only diff is the final two commits,
5d0bf05c4and97150fdca. GitHub'sdiff against
mainstill includes #11409 until that PR merges. This PR does notdepend on #11106. After #11409 merges, rebase to leave only the decimal commits.
Validation
Current refresh (
97150fdca):git range-diffagainst the former923ce5c9a/f6b5335a6stack.parquet-variant,parquet-variant-json, andparquet-variant-computedirectories are byte-identical to the formerf6b5335a6head. Parent changes are outside those directories, includingdependency/workspace metadata; this is not a fresh native test result.
cargo +1.98.1 fmt --all --checkandgit diff --checkpass.97150fdcafor draft publication only; no blocking findings within that scope, and no ready/merge approval.Fresh selected fork CI on this exact head:
pass: Variant 176 unit / 18 integration / 61 doctests; JSON 82 unit / six
doctests; compute 371 unit / 15 doctests. All these selected results have zero
failures and zero ignored tests.
and compilation checks
pass for all three Variant crates.
dependency advisories. This branch's lockfile is identical to parent [Variant] Parse JSON directly into builders #11409's;
upstream
mainat33fd4cdbalready selects patched quinn/zstd versions. Noadvisory is suppressed or changed into a passing check here. The final
Required Checksaggregator is also red; it reports the failed suite ratherthan another native test failure.
Historical qualification at
f6b5335a6:cargo +1.98.1 test -p parquet-variant-json --lib: 82 passed.cargo +1.98.1 clippy -p parquet-variant-json --all-targets -- -D warningsand formatting passed.
The fresh owning tests and Clippy above ran in the fork CI, not locally.
Older Rustice dependency artifacts are not used as a substitute. This does not
qualify Rustice end-to-end behavior or the other workspace/platform suites.
The representative
json_to_variantbenchmark merged upstream in #11411. Afocused performance comparison of the decimal fast and fallback paths remains
a pre-merge check. The draft status is intentional while performance and the
parent-merge gates remain open.
AI Assistance
AI tools assisted with implementation, test development, the rebase and PR text.
A separate AI agent reviewed the changes read-only. This disclosure does not
substitute for maintainer review or the validation gates listed above.