Skip to content

Create a struct with the specified field names and valuesΒ #5861

Closed
@yukkit

Description

@yukkit

Is your feature request related to a problem or challenge?

I want to construct struct from literal or expression by using sql or rust interface.

like:

Describe the solution you'd like

Add a NamedStruct expression similar to what spark does

sql usage:

SELECT named_struct('a', 1, 'b', 2, 'c', 3);

Describe alternatives you've considered

No response

Additional context

If this issue is useful, I will implement it

Metadata

Metadata

Assignees

No one assigned

    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