Closed
Description
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:
- https://docs.databricks.com/sql/language-manual/functions/named_struct.html
- https://duckdb.org/docs/sql/data_types/struct.html
- https://www.postgresql.org/docs/current/sql-expressions.html#SQL-SYNTAX-ROW-CONSTRUCTORS
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