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

[SPARK-48234][SQL] Fix previous reader checks in Vectorized DELTA_BYTE_ARRAY decoder #46485

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

Conversation

yutsareva
Copy link

What changes were proposed in this pull request?

Fixed a check in the vectorized DELTA_BYTE_ARRAY parquet decoder to validate that current page reader requires a previous page data for decoding.

Why are the changes needed?

This change prevents potential read failures on columns with varying page encodings in Parquet files.

Does this PR introduce any user-facing change?

No

How was this patch tested?

Existing tests

Was this patch authored or co-authored using generative AI tooling?

No

@github-actions github-actions bot added the SQL label May 8, 2024
previousReader instanceof RequiresPreviousReader) {
if (CorruptDeltaByteArrays.requiresSequentialReads(writerVersion, dataEncoding)
&& previousReader != null
&& dataColumn instanceof RequiresPreviousReader) {
Copy link
Member

Choose a reason for hiding this comment

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

Could you file a JIRA issue, @yutsareva ?

Copy link
Author

Choose a reason for hiding this comment

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

@dongjoon-hyun
Copy link
Member

cc @sunchao

@yutsareva yutsareva changed the title Fix previous reader checks in Vectorized DELTA_BYTE_ARRAY decoder [SPARK-48234] Fix previous reader checks in Vectorized DELTA_BYTE_ARRAY decoder May 10, 2024
@dongjoon-hyun
Copy link
Member

Thank you for filing JIRA, @yutsareva . The next steps are the following

@dongjoon-hyun dongjoon-hyun changed the title [SPARK-48234] Fix previous reader checks in Vectorized DELTA_BYTE_ARRAY decoder [SPARK-48234][SQL] Fix previous reader checks in Vectorized DELTA_BYTE_ARRAY decoder May 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants