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

ARROW-9910: [Rust][DataFusion] Fixed error in type coercion of Variadic. #8108

Closed
wants to merge 1 commit into from
Closed

Conversation

jorgecarleitao
Copy link
Member

The background of this error is that we currently use numerical_coercion(lhs, rhs) function to check if a coercion rule applies, but that function tries to come up with a common type between lhs and rhs. We should be using the function can_coerce_from to check if a cast can be performed.

This commit fixes this.

@github-actions
Copy link

github-actions bot commented Sep 3, 2020

@jorgecarleitao
Copy link
Member Author

FYI @alamb , @andygrove

Copy link
Contributor

@alamb alamb left a comment

Choose a reason for hiding this comment

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

Looks good to me

Copy link
Member

@andygrove andygrove left a comment

Choose a reason for hiding this comment

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

LGTM

@paddyhoran paddyhoran closed this in aaabcb4 Sep 7, 2020
emkornfield pushed a commit to emkornfield/arrow that referenced this pull request Oct 16, 2020
The background of this error is that we currently use `numerical_coercion(lhs, rhs)` function to check if a coercion rule applies, but that function tries to come up with a common type between lhs and rhs. We should be using the function `can_coerce_from` to check if a cast can be performed.

This commit fixes this.

Closes apache#8108 from jorgecarleitao/type_fix

Authored-by: Jorge C. Leitao <[email protected]>
Signed-off-by: Paddy Horan <[email protected]>
@jorgecarleitao jorgecarleitao deleted the type_fix branch October 28, 2020 04:17
GeorgeAp pushed a commit to sirensolutions/arrow that referenced this pull request Jun 7, 2021
The background of this error is that we currently use `numerical_coercion(lhs, rhs)` function to check if a coercion rule applies, but that function tries to come up with a common type between lhs and rhs. We should be using the function `can_coerce_from` to check if a cast can be performed.

This commit fixes this.

Closes apache#8108 from jorgecarleitao/type_fix

Authored-by: Jorge C. Leitao <[email protected]>
Signed-off-by: Paddy Horan <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants