athlcode commented on code in PR #21720:
URL: https://github.com/apache/datafusion/pull/21720#discussion_r3107409857
##########
datafusion/sqllogictest/test_files/spark/map/map_from_entries.slt:
##########
@@ -151,14 +151,12 @@ SELECT
----
{outer_key1: {inner_a: 1, inner_b: 2}, outer_key2: {inner_x: 10, inner_y: 20,
inner_z: 30}}
-# Test with duplicate keys
-query ?
+# Test with duplicate keys: raises DUPLICATED_MAP_KEY under Spark's default
policy
+query error DataFusion error: Execution error: \[DUPLICATED_MAP_KEY\]
Duplicate map key true was found
SELECT map_from_entries(array(
- struct(true, 'a'),
- struct(false, 'b'),
+ struct(true, 'a'),
+ struct(false, 'b'),
struct(true, 'c'),
- struct(false, cast(NULL as string)),
+ struct(false, cast(NULL as string)),
struct(true, 'd')
Review Comment:
done
--
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]