-
Notifications
You must be signed in to change notification settings - Fork 412
Allow union of {int,long}, {float,double}, etc
#1283
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
Conversation
tests/test_schema.py
Outdated
| 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
kevinjqliu
left a comment
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 <kevinjqliu@users.noreply.github.com>
* Thanks Kevin!
Co-authored-by: Kevin Liu <kevinjqliu@users.noreply.github.com>
* MOAR tests
* lint
* Make the tests happy
* Remove redundant test
---------
Co-authored-by: Kevin Liu <kevinjqliu@users.noreply.github.com>
* Allow union of `{int,long}`, `{float,double}`, etc
* Thanks Kevin!
Co-authored-by: Kevin Liu <kevinjqliu@users.noreply.github.com>
* Thanks Kevin!
Co-authored-by: Kevin Liu <kevinjqliu@users.noreply.github.com>
* MOAR tests
* lint
* Make the tests happy
* Remove redundant test
---------
Co-authored-by: Kevin Liu <kevinjqliu@users.noreply.github.com>
No description provided.