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

coalesce function fails in planning if any argument is Utf8View type #13347

Closed
Omega359 opened this issue Nov 10, 2024 · 1 comment · Fixed by #13350
Closed

coalesce function fails in planning if any argument is Utf8View type #13347

Omega359 opened this issue Nov 10, 2024 · 1 comment · Fixed by #13350
Assignees
Labels
bug Something isn't working

Comments

@Omega359
Copy link
Contributor

Describe the bug

query T
select COALESCE(arrow_cast(null, 'Utf8'), arrow_cast('t', 'Utf8View'));
----
t

External error: query failed: DataFusion error: Error during planning: Execution error: User-defined coercion failed with Execution("Fail to find the coerced type, errors: Some(Execution("Expect to get struct but got Utf8"))") No function matches the given name and argument types 'coalesce(Utf8, Utf8View)'. You might need to add explicit type casts.
Candidate functions:
coalesce(UserDefined)

To Reproduce

See bug description. Test passes if all values are Utf8

Expected behavior

The test should pass

Additional context

Seeing this after upgrading to latest HEAD as of Nov 10 2024.

@Omega359 Omega359 added the bug Something isn't working label Nov 10, 2024
@Omega359
Copy link
Contributor Author

Related to and possibly caused by #12864

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants