Itzdhruvpatel commented on issue #18913:
URL: https://github.com/apache/datafusion/issues/18913#issuecomment-3572341957

   Thanks for clarifying! That makes sense — right now `MAP()` requires list 
types, so the array workaround is the only option:
   SELECT MAP(ARRAY['type'], ARRAY['test']);    - Workaround
   
   SELECT MAP(
       ARRAY['type', 'category'],        { for multiple entries } 
       ARRAY['test', 'demo']
   );
   
   


-- 
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]

Reply via email to