Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable tests in unnest.iq about [CALCITE-5127] #4164

Merged
merged 1 commit into from
Jan 24, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading