Skip to content

Can't put map_extract(MAP {'a': 1}, 'a') = 1 as filter #18668

@lewiszlw

Description

@lewiszlw

Describe the bug

I run below sql on lastet main datafusion-cli and execution failed.

> select 1 where map_extract(MAP {'a': 1}, 'a') = 1;
type_coercion
caused by
Error during planning: Cannot infer common argument type for comparison operation List(nullable Int64) = Int64

To Reproduce

No response

Expected behavior

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions