Skip to content

Support map type casting for numeric type and null type element #3389

Closed

Description

@peterxcli
select map_contains_key(map_from_arrays(array(1, 2), array('a', 'b')), 5.0)
  Expected only Comet native operators, but found Project.
  plan:  Project [COMET: Cast from MapType(IntegerType,StringType,false) to MapType(DecimalType(11,1),StringType,false) is not supported]
  +- Scan OneRowRelation
select map_contains_key(map_from_arrays(array(), array()), 0)
  Expected only Comet native operators, but found Project.
  plan:  Project [COMET: Cast from MapType(NullType,NullType,false) to MapType(IntegerType,NullType,false) is not supported]
  +- Scan OneRowRelation

Activity

  1. changed the title [-]Support map type numeric casting[/-] [+]Support map type casting for numeric type and null type element[/+] on Feb 4, 2026
  2. comphead commented on Jun 12, 2026

    @comphead
    Contributor

    Thanks @peterxcli for reporting this

  3. self-assigned this
    on Jun 12, 2026
  4. peterxcli commented on Jun 21, 2026

    @peterxcli
    MemberAuthor

    @comphead please feel free to ping me when the patch is ready, Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions