Skip to content

Conversation

@yaooqinn
Copy link
Member

@yaooqinn yaooqinn commented Jan 18, 2024

What changes were proposed in this pull request?

This PR fixes the case sensitivity of 'compression' in the avro table definition and the write options, in order to make it consistent with other file sources. Also, the current logic for dealing invalid codec names is unreachable.

Why are the changes needed?

bugfix

Does this PR introduce any user-facing change?

yes, 'compression'='Xz', 'compression'='XZ' now works as well as 'compression'='xz'

How was this patch tested?

new tests

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

no

@yaooqinn
Copy link
Member Author

cc @dongjoon-hyun @cloud-fan, thank you in advance for reviewing this PR if you have some time.

Copy link
Member

@dongjoon-hyun dongjoon-hyun left a comment

Choose a reason for hiding this comment

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

+1, LGTM. I have only one minor comment.

Copy link
Member

@dongjoon-hyun dongjoon-hyun left a comment

Choose a reason for hiding this comment

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

Thank you for updates.

@yaooqinn
Copy link
Member Author

Thank you @dongjoon-hyun and @cloud-fan, merged to master

@yaooqinn yaooqinn closed this in 461026c Jan 18, 2024
@yaooqinn yaooqinn deleted the SPARK-46754 branch January 18, 2024 08:09
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.

3 participants