Skip to content

MINOR: Fix validation of decimals at their declared precision - #1342

Merged
jbonofre merged 1 commit into
apache:mainfrom
robert3005:rk/fix-decimal-precision
Oct 30, 2026
Merged

jbonofre merged 1 commit into
apache:mainfrom
robert3005:rk/fix-decimal-precision

Conversation

@robert3005

Copy link
Copy Markdown
Contributor

DecimalUtilityl#checkPrecisionAndScaleNoThrow used to reject value precision that was equal to the vector precision, it should not.

@robert3005 robert3005 changed the title Minor: Fix validation of decimals at their declared precision MINOR: Fix validation of decimals at their declared precision Oct 12, 2026
@github-actions

This comment has been minimized.

@lidavidm lidavidm added the bug-fix PRs that fix a big. label Oct 12, 2026
@github-actions github-actions Bot added this to the 20.0.0 milestone Oct 12, 2026

@jbonofre jbonofre left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for the fix!

checkPrecisionAndScaleNoThrow now matches the Javadoc and the throwing checkPrecisionAndScale, which fixes the off-by-one at the boundary.

@jbonofre
jbonofre merged commit 2f35627 into apache:main Oct 30, 2026
1 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug-fix PRs that fix a big.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants