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

UUID literal to binary and fixed #529

Merged
merged 10 commits into from
Mar 18, 2024

Conversation

sebpretzer
Copy link
Contributor

@sebpretzer sebpretzer commented Mar 18, 2024

Closes #522

Note: asserts isinstance(... passes the tests but fails mypy. I didn't want to dig too far into this issue since I believe its unrelated. Not sure if that should be worked on separately, or I am misunderstanding something and this isn't actually an issue. Errors look like: Subclass of "Literal[UUID]" and "BinaryLiteral" cannot exist: would have inconsistent method resolution order [unreachable]

@sebpretzer
Copy link
Contributor Author

@Fokko this is ready for your review whenever you have a chance, 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.

This looks great, thanks for creating this PR @sebpretzer

@Fokko Fokko merged commit a7f207f into apache:main Mar 18, 2024
7 checks passed
@sebpretzer sebpretzer deleted the uuid_literal_to_binary_and_fixed branch March 19, 2024 00:39
@HonahX HonahX added this to the PyIceberg 0.6.1 milestone Apr 13, 2024
HonahX pushed a commit to HonahX/iceberg-python that referenced this pull request Apr 13, 2024
* poetry lock --no-update

* adding uuid literal to fixed/binary type

* simplifying uuid generation

* editted wrong line of test

* adding assert_type for uuid literal

* assertation doesn't add much

* mypy no longer failing

* old code got into PR...oops

* cleaning up empty lines
Fokko pushed a commit that referenced this pull request Apr 14, 2024
* poetry lock --no-update

* adding uuid literal to fixed/binary type

* simplifying uuid generation

* editted wrong line of test

* adding assert_type for uuid literal

* assertation doesn't add much

* mypy no longer failing

* old code got into PR...oops

* cleaning up empty lines
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.

Cast from UUIDLiteral to other types?
3 participants