Skip to content

Conversation

@bryanck
Copy link
Contributor

@bryanck bryanck commented Jul 4, 2022

This PR fixes the vectorized reader for decimals that are fixed length binary and dictionary-encoded. Before these decimals would be downcast to 8 byte (long) precision. This only affects Parquet V2, as fixed length binary decimals aren't dictionary-encoded in Parquet V1. The Spark vectorized reader test for Parquet V2 was modified so this is now tested.

Also included is a minor refactor of the big endian padding to share some common logic and make it easier to enhance later.

In addition, the Spark benchmark test for the vectorized reader was enhanced to include both long encoded and fixed width binary encoded decimals.

@bryanck bryanck force-pushed the fixed-len-dec-dict branch from c80f12b to 596dd88 Compare July 4, 2022 22:57
@rdblue
Copy link
Contributor

rdblue commented Jul 5, 2022

This looks good to me. Thanks for fixing it, @bryanck!

@rdblue rdblue merged commit c8b97c9 into apache:master Jul 5, 2022
namrathamyske pushed a commit to namrathamyske/iceberg that referenced this pull request Jul 10, 2022
namrathamyske pushed a commit to namrathamyske/iceberg that referenced this pull request Jul 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants