Skip to content

Commit

Permalink
Minor: add Quidem test
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenada committed Jul 13, 2024
1 parent 5d281fc commit 72451af
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions core/src/test/resources/sql/sub-query.iq
Original file line number Diff line number Diff line change
Expand Up @@ -3800,4 +3800,18 @@ SELECT array(SELECT empno FROM emp WHERE empno > 7800 ORDER BY empno DESC LIMIT

!ok

# [CALCITE-6468] RelDecorrelator throws AssertionError if correlated variable
# is used as Aggregate group key
WITH agg_sal AS
(SELECT deptno, sum(sal) AS total FROM emp GROUP BY deptno)
SELECT 1 FROM agg_sal s1
WHERE s1.total > (SELECT avg(total) FROM agg_sal s2 WHERE s1.deptno = s2.deptno);
+--------+
| EXPR$0 |
+--------+
+--------+
(0 rows)

!ok

# End sub-query.iq

0 comments on commit 72451af

Please sign in to comment.