Skip to content

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
  • Loading branch information
chucheng92 committed Oct 19, 2023
1 parent 27b7809 commit 24004ac
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions core/src/test/resources/sql/sub-query.iq
Original file line number Diff line number Diff line change
Expand Up @@ -3696,4 +3696,16 @@ SELECT map(SELECT empno, deptno from emp where deptno < 20);

!ok

# [CALCITE-6041] MAP sub-query gives NullPointerException
# empty map
SELECT map(SELECT empno, deptno from emp where false);
+--------+
| EXPR$0 |
+--------+
| {} |
+--------+
(1 row)

!ok

# End sub-query.iq

0 comments on commit 24004ac

Please sign in to comment.