Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: column writer for dictionary decimal primitive type #6987

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

korowa
Copy link
Contributor

@korowa korowa commented Jan 16, 2025

Which issue does this PR close?

Closes #.

Rationale for this change

Currently Parquet reads/writes for Arrow Dictionary(Decimal) type where Decimal is INT-based is falling back to arrow_cast::cast, which leads to losing precision.

What changes are included in this PR?

For Dictionary(Decimal) type where decimal is int-based, writer and reader now perform arrow_cast::cast only for dictionary packing/unpacking, while values are only casted to required integer type without being modified, similar to how regular Decimal works.

Are there any user-facing changes?

No

@github-actions github-actions bot added the parquet Changes to the parquet crate label Jan 16, 2025
@korowa korowa force-pushed the fix-write-dict-decimal branch from b2ad521 to 8f0c20c Compare January 16, 2025 05:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
parquet Changes to the parquet crate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant