Skip to content

Conversation

@nicolaslrveiga
Copy link

@nicolaslrveiga nicolaslrveiga commented Mar 17, 2022

This pull request is a follow up for this pull request: #20826
The pull request above was closed because of inactivity.

What changes were proposed in this pull request?

This PR adds support for reading Parquet FIXED_LENGTH_BYTE_ARRAYs
as a Binary column if no OriginalType is specified.

Why are the changes needed?

Parquet-avro writes the Avro fixed type as a Parquet
FIXED_LENGTH_BYTE_ARRAY type. Currently when trying to
load Parquet files with a column of this type with Spark
SQL it throws an exception.

Does this PR introduce any user-facing change?

No.

How was this patch tested?

Unit tests where implemented to support the change.
I also tested the change locally and now I am able to load
the Parquet files as expected.

### What changes were proposed in this pull request?

This PR adds support for reading Parquet FIXED_LENGTH_BYTE_ARRAYs
as a Binary column if no OriginalType is specified.

### Why are the changes needed?

Parquet-avro writes the Avro fixed type as a Parquet
FIXED_LENGTH_BYTE_ARRAY type. Currently when trying to
load Parquet files with a column of this type with Spark
SQL it throws an exception.

### Does this PR introduce _any_ user-facing change?
No.

### How was this patch tested?
Unit tests where implemented to support the change.
I also tested the change locally and now I am able to load
the Parquet files as expected.
@AmplabJenkins
Copy link

Can one of the admins verify this patch?

@github-actions
Copy link

We're closing this PR because it hasn't been updated in a while. This isn't a judgement on the merit of the PR in any way. It's just a way of keeping the PR queue manageable.
If you'd like to revive this PR, please reopen it and ask a committer to remove the Stale tag!

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