friendlymatthew commented on issue #18913:
URL: https://github.com/apache/datafusion/issues/18913#issuecomment-3572267108
> The reason for the error is that DataFusion's current implementation of
the MAP() function expects both arguments to be list types (list, large_list,
or fixed_size_list) rather than scalar strings (Utf8). Thus, a type mismatch
causes the syntax MAP('type', 'test') to fail.
Hi, you're right about the current behavior - `map()` currently requires
list types rather than accepting scalar values directly. However, this **is**
the issue I'm working to fix
While the workaround you mentioned works with the current impl, the goal
here is to make that workaround unnecessary by fixing the underlying limitation
--
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]