Skip to content

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

@peterxcli

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

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

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