Skip to content

Conversation

@hgollakota
Copy link
Contributor

@hgollakota hgollakota commented Nov 22, 2024

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

Closes #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? :)

@Fokko Fokko merged commit 4e75599 into apache:main Jan 15, 2025
@kevinjqliu
Copy link
Contributor

@Fokko this PR is failing CI https://github.com/apache/iceberg-python/actions/runs/12792587045/job/35663397601
I also tested that it fails locally. We might need to revert this.

Fokko added a commit to Fokko/iceberg-python that referenced this pull request Jan 15, 2025
Fokko added a commit that referenced this pull request Jan 15, 2025
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.

Allow file_format to be lower-case

3 participants