Skip to content

Commit

Permalink
Enable tests in unnest.iq about [CALCITE-5127]
Browse files Browse the repository at this point in the history
  • Loading branch information
NobiGo committed Jan 24, 2025
1 parent c445e81 commit 6f86860
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@
* select a from R1 where a > 7
* → "a > 7" is pulled up from the Projection.
* select a + 1 from R1 where a + 1 > 7
* → "a + 1 gt; 7" is not pulled up
* → "a + 1 > 7" is not pulled up
* </pre>
*
* <li> There are several restrictions on Joins:
Expand Down
13 changes: 5 additions & 8 deletions core/src/test/resources/sql/unnest.iq
Original file line number Diff line number Diff line change
Expand Up @@ -116,19 +116,16 @@ from UNNEST(array(select 'banana')) as fruit;

!ok

#TODO: Remove if when [CALCITE-5127] will be fixed.
!if (false) {
SELECT ARRAY(SELECT y + 1 FROM UNNEST(s.x) y)
FROM (SELECT ARRAY[1,2,3] as x) s;
+--------+
| FRUIT |
+--------+
| banana |
+--------+
+-----------+
| EXPR$0 |
+-----------+
| [2, 3, 4] |
+-----------+
(1 row)

!ok
!}

# If UNNEST is not the direct child of the AS, aliasing doesn't happen.
SELECT fruit.*
Expand Down

0 comments on commit 6f86860

Please sign in to comment.