alamb commented on issue #11268: URL: https://github.com/apache/datafusion/issues/11268#issuecomment-2210725431
> https://duckdb.org/docs/sql/data_types/map.html > > we can follow the syntax from DuckDB, `map_from_entries`, and convert the syntax `MAP {k: v, ...}` to function `map_from_entries` later I like this idea very mch This is also consistent with how `struct` / `named_struct` work Here is `named_struct` function: https://github.com/apache/datafusion/blob/main/datafusion/functions/src/core/named_struct.rs Here is the syntax support https://github.com/apache/datafusion/blob/b46d5b7fc65a647d51339f3e6524879aee9810fa/datafusion/functions/src/core/planner.rs#L27-L40 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
