hsiang-c commented on code in PR #21047:
URL: https://github.com/apache/datafusion/pull/21047#discussion_r2956882009


##########
datafusion/sqllogictest/test_files/array.slt:
##########
@@ -7324,6 +7324,50 @@ select arrays_zip(a, b) from (values ([1, 2], [10, 20]), 
(null, [30, 40]), ([5,
 [{1: NULL, 2: 30}, {1: NULL, 2: 40}]
 [{1: 5, 2: NULL}, {1: 6, 2: NULL}]
 
+# column-level test with single argument
+query ?
+select arrays_zip(a) from (values ([1, 2], [10, 20]), (null, [30, 40]), ([5, 
6], null)) as t(a, b);

Review Comment:
   Test on column `a`



##########
datafusion/sqllogictest/test_files/array.slt:
##########
@@ -7324,6 +7324,50 @@ select arrays_zip(a, b) from (values ([1, 2], [10, 20]), 
(null, [30, 40]), ([5,
 [{1: NULL, 2: 30}, {1: NULL, 2: 40}]
 [{1: 5, 2: NULL}, {1: 6, 2: NULL}]
 
+# column-level test with single argument
+query ?
+select arrays_zip(a) from (values ([1, 2], [10, 20]), (null, [30, 40]), ([5, 
6], null)) as t(a, b);
+----
+[{1: 1}, {1: 2}]
+NULL
+[{1: 5}, {1: 6}]
+
+query ?
+select arrays_zip(b) from (values ([1, 2], [10, 20]), (null, [30, 40]), ([5, 
6], null)) as t(a, b);

Review Comment:
   Test on column `b`



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