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

Added support for lowercase FileFormat for Issue #1340 #1362

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

Conversation

hgollakota
Copy link

Modified the FileFormat class so that it utilizes EnumMeta value aliases.

This allows specifying both "AVRO" and "avro" to map to AVRO, for example.

This addresses Issue #1340

Modified the FileFormat class so that it utilizes EnumMeta value aliases. This allows both "AVRO" and "avro" to map to AVRO.
@kevinjqliu
Copy link
Contributor

thanks for the contribution! do you mind adding a few test cases to validate the new behavior?

in the original issue, the Datafile has to set file_format to uppercase. This would be a good test
https://github.com/apache/iceberg-rust/pull/349/files/a740d28d640543146dc2befbb78461998c469e23#diff-8389535350ef7cddc266dfd18d589a978643da0334c23e16646e62e8d6a0892eR1327-R1337

@Fokko
Copy link
Contributor

Fokko commented Dec 11, 2024

@hgollakota It looks like there is a formatting issue, could you run make lint? :)

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.

3 participants