Skip to content

Conversation

ArnavBalyan
Copy link
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
Member Author

cc @shangxinli @wgtmac could you please review thanks!

import org.slf4j.LoggerFactory;

/**
* ValuesReader for variable-length {@code BYTE_ARRAY} columns.
Copy link
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
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!

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.

Is big Decimal in Parquet big endian?
2 participants