Skip to content

GH-3246: Clarify the behaviour of big decimal for BYTE_ARRAY#3270

Closed
ArnavBalyan wants to merge 2 commits into
apache:masterfrom
ArnavBalyan:arnavb/clarify-endian
Closed

GH-3246: Clarify the behaviour of big decimal for BYTE_ARRAY#3270
ArnavBalyan wants to merge 2 commits into
apache:masterfrom
ArnavBalyan:arnavb/clarify-endian

Conversation

@ArnavBalyan

Copy link
Copy Markdown
Member
  • The behaviour of BYTE_ARRAY or FIXED_LEN_BYTE_ARRAY for big decimals is not clear from the docs.
  • Added code comments at the read/writer to make the behaviour more clear for the reader.
  • Fixes Is big Decimal in Parquet big endian? #3246

@ArnavBalyan

Copy link
Copy Markdown
Member Author

cc @shangxinli @wgtmac could you please review thanks!

import org.slf4j.LoggerFactory;

/**
* ValuesReader for variable-length {@code BYTE_ARRAY} columns.

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.

I don't think this is the good place to add the comment since this class is for a specific encoding of binary physical type.

As I have replied in the issue, the spec is clear on this so we don't even need the explaination.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the review, yes on retrospect code comment may not be the best, I'll check if the readme can be made more clear since the user pointed to the readme asking for clarity. Will iterate and get back thanks!

@github-actions

Copy link
Copy Markdown

This pull request has been automatically marked as stale because it has had no activity for at least 2 months. If you are still working on this change or plan to move it forward, please leave a comment or push a new commit so we know to keep it open. Otherwise, this PR will be closed automatically in about one month. Thank you for your contribution to Apache Parquet!

@github-actions github-actions Bot added the stale label Apr 23, 2026
@github-actions

Copy link
Copy Markdown

Closing this pull request due to at least 3 months of inactivity. If you would like to continue the work, please feel free to reopen this pull request or open a new one. Thank you for your contribution to Apache Parquet!

@github-actions github-actions Bot closed this May 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Is big Decimal in Parquet big endian?

2 participants