Skip to content

Conversation

@jiakai-li
Copy link
Contributor

@jiakai-li jiakai-li commented Dec 6, 2024

This pull request makes the following changes:

The change is to make FileFormat case insensitve. The idea is to add _missing_ funtion to handle lower case in a pythonic way.
Also included corresponding test at tests/test_manifest.py.

@jiakai-li
Copy link
Contributor Author

Hey @kevinjqliu @Fokko, this PR is ready for review. Rather than modifying the __new__ method, I think it's probably a better option to modify _missing_ based on its semantic meaning. Please let me know if there is more change you would like me to make. Thanks!

Copy link
Contributor

@Fokko Fokko left a comment

Choose a reason for hiding this comment

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

Looks good, thanks @jiakai-li for fixing this 🙌

@Fokko Fokko merged commit 88c4bad into apache:main Dec 9, 2024
7 checks passed
@jiakai-li jiakai-li deleted the fix-make-fileformat-case-insensitive branch December 10, 2024 16:07
sungwy pushed a commit to sungwy/iceberg-python that referenced this pull request Dec 24, 2024
* Add _missing_ to FileFormat Enum to make it case insensitive

* Combine the manifest test to existing test_manifest.py file

* Fix linting
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.

2 participants