Skip to content

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

Description

@Omega359

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.

Activity

  1. Omega359 commented on Nov 11, 2024

    @Omega359
    ContributorAuthor

    Related to and possibly caused by #12864

  2. self-assigned this
    on Nov 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions