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

Allow UNWIND for ARRAY data type #3401

Closed
prrao87 opened this issue Apr 28, 2024 · 0 comments · Fixed by #3402
Closed

Allow UNWIND for ARRAY data type #3401

prrao87 opened this issue Apr 28, 2024 · 0 comments · Fixed by #3402
Assignees
Labels
feature New features or missing components of existing features

Comments

@prrao87
Copy link
Member

prrao87 commented Apr 28, 2024

In testing the ARRAY data type, it seems like UNWIND doesn't work for it like it does for LIST. We should support UNWIND for ARRAY too, considering it's just a special case of LIST.

kuzu> UNWIND CAST([[5,2,1],[2,3],[15,64,74]], 'INT64[][3]') AS x RETURN x;
Error: Binder exception: CAST(LIST_CREATION(LIST_CREATION(5,2,1),LIST_CREATION(2,3),LIST_CREATION(15,64,74)), INT64[][3]) has data type INT64[][3] but LIST was expected.

For LIST, this works fine:

kuzu> UNWIND [[5,2,1],[2,3],[15,64,74]] AS x RETURN x;
--------------
| x          |
--------------
| [5,2,1]    |
--------------
| [2,3]      |
--------------
| [15,64,74] |
--------------
(3 tuples)
(1 column)
Time: 0.13ms (compiling), 0.24ms (executing)
@prrao87 prrao87 added the feature New features or missing components of existing features label Apr 28, 2024
@prrao87 prrao87 mentioned this issue Apr 28, 2024
32 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New features or missing components of existing features
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants