Skip to content

Support map_entries function #1916

@parthchandra

Description

@parthchandra

Describe the bug

The test has a query -

 sql(
  "select optional_array[0], " +
  "array_of_struct[0].field1, " +
  "array_of_struct[0].optional_nested_array, " +
  "optional_map.key, " +
  "optional_map.value, " +
  "map_keys(complex_map), " +
  "map_values(complex_map) " +
  "from complex_types")

which could be
sql(
"select optional_array[0], " +
"array_of_struct[0].field1, " +
"array_of_struct[0].optional_nested_array, " +
"optional_map.key, " +
"optional_map.value, " +
"map_entries(complex_map), " +
"map_keys(complex_map), " +
"map_values(complex_map) " +
"from complex_types")

to ensure map_entries are also read correctly.

### Steps to reproduce

_No response_

### Expected behavior

_No response_

### Additional context

_No response_

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions