Skip to content

Scalar function in DataFusion cannot coerce dictionary type inputs #265

@viirya

Description

@viirya

Describe the bug

This is found during debugging #250.

The current input type coercion rule of scalar functions in DataFusion cannot handle Dictionary types. In TPCDS queries, The PR #250 encounters an error on Coalesce function with q8:

Error during planning: Coercion from [Dictionary(Int32, Utf8), Utf8] to the signature VariadicEqual failed

This has to be fixed at DataFusion instead of Comet.

Steps to reproduce

No response

Expected behavior

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions