-
Notifications
You must be signed in to change notification settings - Fork 221
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 <[email protected]>
Co-authored-by: Kevin Liu <[email protected]>
…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 🙌 |
* Allow union of `{int,long}`, `{float,double}`, etc * Thanks Kevin! Co-authored-by: Kevin Liu <[email protected]> * Thanks Kevin! Co-authored-by: Kevin Liu <[email protected]> * MOAR tests * lint * Make the tests happy * Remove redundant test --------- Co-authored-by: Kevin Liu <[email protected]>
* Allow union of `{int,long}`, `{float,double}`, etc * Thanks Kevin! Co-authored-by: Kevin Liu <[email protected]> * Thanks Kevin! Co-authored-by: Kevin Liu <[email protected]> * MOAR tests * lint * Make the tests happy * Remove redundant test --------- Co-authored-by: Kevin Liu <[email protected]>
No description provided.