Weijun-H commented on PR #12153:
URL: https://github.com/apache/datafusion/pull/12153#issuecomment-2310456995
> Thanks @Weijun-H overall LGTM. I also tested some cases for nested type as
the key. They work well. 👍
>
> ```
> # Test duplicate keys
> query error DataFusion error: Execution error: map key must be unique,
duplicate key found: \[1, 2\]
> SELECT MAP([[1,2], [1,2], []], [41, 33, null]);
>
> # Test duplicate keys
> query error DataFusion error: Execution error: map key must be unique,
duplicate key found: \[\{1:1\}\]
> SELECT MAP([Map {1:'1'}, Map {1:'1'}, Map {2:'2'}], [41, 33, null]);
> ```
Nice catch! I added them to the tests
--
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]