comphead commented on code in PR #18394:
URL: https://github.com/apache/datafusion/pull/18394#discussion_r2483969736
##########
datafusion/sqllogictest/test_files/map.slt:
##########
@@ -544,11 +544,16 @@ SELECT (CASE WHEN 1 > 0 THEN MAP {'x': 100} ELSE MAP
{'y': 200} END)['x'];
----
100
-# TODO(https://github.com/apache/datafusion/issues/11785): fix accessing map
with non-string key
-# query ?
-# SELECT MAP { MAP {1:'a', 2:'b'}:1, MAP {1:'c', 2:'d'}:2 }[MAP {1:'a',
2:'b'}];
-# ----
-# 1
+# fix accessing map with nested key
+query I
+SELECT MAP { MAP {1:'a', 2:'b'}:1, MAP {1:'c', 2:'d'}:2 }[MAP {1:'a', 2:'b'}];
Review Comment:
please add test with null casted to map
--
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]