Skip to content

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

Closed
jorgecarleitao wants to merge 1 commit into
apache:masterfrom
jorgecarleitao:type_fix
Closed

ARROW-9910: [Rust][DataFusion] Fixed error in type coercion of Variadic.#8108
jorgecarleitao wants to merge 1 commit into
apache:masterfrom
jorgecarleitao:type_fix

Conversation

@jorgecarleitao

Copy link
Copy Markdown
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
Copy Markdown

@jorgecarleitao

Copy link
Copy Markdown
MemberAuthor

FYI @alamb , @andygrove

@alambalamb left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good to me

@andygroveandygrove left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

Sign up for freeto 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

@jorgecarleitao@alamb@andygrove