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

Allow union of {int,long}, {float,double}, etc #1283

Merged
merged 9 commits into from
Nov 5, 2024

Conversation

Fokko
Copy link
Contributor

@Fokko Fokko commented Nov 1, 2024

No description provided.

tests/test_schema.py Outdated Show resolved Hide resolved
pyiceberg/table/update/schema.py Outdated Show resolved Hide resolved
@@ -1200,11 +1200,33 @@ def test_promote_float_to_double() -> None:
assert isinstance(applied.fields[0].field_type, DoubleType)


def test_promote_long_to_int() -> None:
Copy link
Contributor

Choose a reason for hiding this comment

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

nit, I dont see a test case for int to long. Can we add that here?

Theres a corresponding test case for double to float and float to double

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good one, added those as well 👍

tests/test_schema.py Outdated Show resolved Hide resolved
Fokko and others added 7 commits November 4, 2024 15:03
Co-authored-by: Kevin Liu <kevinjqliu@users.noreply.github.com>
Co-authored-by: Kevin Liu <kevinjqliu@users.noreply.github.com>
Copy link
Contributor

@kevinjqliu kevinjqliu left a comment

Choose a reason for hiding this comment

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

LGTM! A few nit comments

tests/test_schema.py Show resolved Hide resolved
tests/test_schema.py Outdated Show resolved Hide resolved
@Fokko Fokko merged commit c3bf16c into apache:main Nov 5, 2024
7 checks passed
@Fokko Fokko deleted the fd-extend-union branch November 5, 2024 15:54
@Fokko
Copy link
Contributor Author

Fokko commented Nov 5, 2024

Thanks for the review @kevinjqliu 🙌

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