francis0407 commented on a change in pull request #23783: [SPARK-26854][SQL] 
Support ANY/SOME subquery
URL: https://github.com/apache/spark/pull/23783#discussion_r263353123
 
 

 ##########
 File path: 
sql/core/src/test/resources/sql-tests/inputs/subquery/any-subquery/any-multiple-columns.sql
 ##########
 @@ -0,0 +1,66 @@
+-- A test suite for ANY/SOME predicate with multiple columns
+
+create temporary view a as select * from values
+  (1, 1),
+  (null, 2),
+  (3, 3),
+  (4, null)
+  AS a(a1, a2);
+
+create temporary view b as select * from values
+  (1, 1),
+  (4, null),
+  (3, 2)
+  AS b(b1, b2);
+
+create temporary view c as select * from values
+  (1, 1),
+  (null, null),
+  (3, 2)
+  AS c(c1, c2);
+
+-- ANY predicate with `multi-column = subquery`
+-- TC 01.01
+SELECT a1,
+       a2
+FROM   a
+WHERE  (a1, a2) = ANY (SELECT b1,
+                              b2
+                       FROM   b );
 
 Review comment:
   ok

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to