Skip to content

Implement MAP(key, value) syntax to match documentation #18913

@friendlymatthew

Description

@friendlymatthew

Describe the bug

The documentation shows the map function supports a simple key-value syntax like map(key, value), but this syntax currently errors!

DataFusion CLI v51.0.0
> SELECT MAP('type', 'test');
Execution error: Expected list, large_list or fixed_size_list, got Utf8

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions