Skip to content

[python] Align exact VARIANT integer and decimal types - #9168

Merged
JingsongLi merged 2 commits into
apache:masterfrom
XiaoHongbo-Hope:codex/variant-exact-types
Aug 11, 2026
Merged

[python] Align exact VARIANT integer and decimal types#9168
JingsongLi merged 2 commits into
apache:masterfrom
XiaoHongbo-Hope:codex/variant-exact-types

Conversation

@XiaoHongbo-Hope

Copy link
Copy Markdown
Contributor

Follow up on #9147.

  • Read VARIANT LONG values through any signed Arrow integer width, matching the integer types accepted by variant_replace.
  • Reject negative-scale DECIMAL types before encoding or extraction instead of normalizing them to scale 0.
  • Add round-trip and rejection tests.

Validation: 136 passed, 23 subtests passed; flake8 and git diff --check passed.

@XiaoHongbo-Hope
XiaoHongbo-Hope marked this pull request as ready for review August 11, 2026 08:38
@JingsongLi

Copy link
Copy Markdown
Contributor

+1

@JingsongLi
JingsongLi merged commit e3cd680 into apache:master Aug 11, 2026
9 checks passed
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.

2 participants