Skip to content

MINOR: Preserve Decimal256 type metadata in promoted union writers - #1519

Merged
jbonofre merged 2 commits into
apache:mainfrom
robert3005:rk/fix-decimal256-writer-promotion
Nov 24, 2026
Merged

jbonofre merged 2 commits into
apache:mainfrom
robert3005:rk/fix-decimal256-writer-promotion

Conversation

@robert3005

Copy link
Copy Markdown
Contributor

What's Changed

split from #1228, in cases like following

writer.startList();
writer.decimal().writeDecimal(new BigDecimal("123.45"));
writer.decimal256().writeDecimal256(
    new BigDecimal("123456789012345678901234567890123456789.01"));

we would lose the fact that 2nd values was Decimal256

@lidavidm lidavidm changed the title [MINOR] Preserve Decimal256 type metadata in promoted union writers MINOR: Preserve Decimal256 type metadata in promoted union writers Nov 24, 2026
@lidavidm lidavidm added the bug-fix PRs that fix a big. label Nov 24, 2026
@github-actions github-actions Bot added this to the 20.1.0 milestone Nov 24, 2026
@robert3005

Copy link
Copy Markdown
Contributor Author

Thanks, I have moved the tests around

@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 addressing the feedback!

@jbonofre
jbonofre merged commit f51583b into apache:main Nov 24, 2026
22 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