Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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
@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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.