Skip to content

Commit

Permalink
Restore test
Browse files Browse the repository at this point in the history
  • Loading branch information
somani committed Nov 5, 2021
1 parent 5c73849 commit 5ed47eb
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1931,14 +1931,14 @@ class SubquerySuite extends QueryTest with SharedSparkSession with AdaptiveSpark
sql(
"""
|SELECT c1, s, s * 10 FROM (
| SELECT c1, (SELECT MIN(c2) FROM t2 WHERE t1.c1 = t2.c1) s FROM t1)
| SELECT c1, (SELECT FIRST(c2) FROM t2 WHERE t1.c1 = t2.c1) s FROM t1)
|""".stripMargin),
correctAnswer)
checkAnswer(
sql(
"""
|SELECT c1, s, s * 10 FROM (
| SELECT c1, SUM((SELECT MIN(c2) FROM t2 WHERE t1.c1 = t2.c1)) s
| SELECT c1, SUM((SELECT FIRST(c2) FROM t2 WHERE t1.c1 = t2.c1)) s
| FROM t1 GROUP BY c1
|)
|""".stripMargin),
Expand Down

0 comments on commit 5ed47eb

Please sign in to comment.