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

PARQUET-1440: Convert int32 or int64 decimal values to BigDecimals #530

Merged
merged 1 commit into from
Oct 10, 2018

Conversation

ryangardner
Copy link
Contributor

This pull requests updates the DecimalConverter to override the addInt and addLong methods so it will return a BigDecimal with the proper scale when reading an int32 or int64 that is a DECIMAL with a specific scale.

Without this override in place, the scale factor is ignored and the int32 DECIMAL values are displayed inaccurately

@zivanfi
Copy link
Contributor

zivanfi commented Oct 9, 2018

Could you please open a JIRA about this issue and reference its number in PR title? Thanks!

@ryangardner
Copy link
Contributor Author

Could you please open a JIRA about this issue and reference its number in PR title? Thanks!

I did. Let me know if there's anything else I can do.

@zivanfi zivanfi changed the title Convert int32 or int64 decimal values to BigDecimals PARQUET-1440: Convert int32 or int64 decimal values to BigDecimals Oct 9, 2018
@zivanfi zivanfi merged commit 716fb6b into apache:master Oct 10, 2018
@zivanfi
Copy link
Contributor

zivanfi commented Oct 10, 2018

Merged, thanks!

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