-
Notifications
You must be signed in to change notification settings - Fork 175
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
Conversation
tests/test_schema.py
Outdated
@@ -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: |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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 👍
Co-authored-by: Kevin Liu <kevinjqliu@users.noreply.github.com>
Co-authored-by: Kevin Liu <kevinjqliu@users.noreply.github.com>
…o fd-extend-union
There was a problem hiding this 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
Thanks for the review @kevinjqliu 🙌 |
No description provided.