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

Cannot create a list of structs #1954

Closed
rfdavid opened this issue Aug 24, 2023 · 2 comments
Closed

Cannot create a list of structs #1954

rfdavid opened this issue Aug 24, 2023 · 2 comments

Comments

@rfdavid
Copy link
Collaborator

rfdavid commented Aug 24, 2023

I'm trying to create a node table to hold the following data:

kuzu> return [{a: 1}];
---------------------------------
| LIST_CREATION(STRUCT_PACK(1)) |
---------------------------------
| [{a: 1}]                      |
---------------------------------

However, I'm getting the following error:

kuzu> create node table test7(id int64, field struct(a int64)[], primary key(id));
Error: Parser exception: mismatched input '[' expecting {',', SP} (line: 1, offset: 55)
"create node table test7(id int64, field struct(a int64)[], primary key(id))"
                                                        ^
@acquamarin
Copy link
Collaborator

I don't have any issues creating a list of struct. Can you please provide us more information? (e.g. platform, os)

kuzu> return [{a: 1}]
..> ;
---------------------------------
| LIST_CREATION(STRUCT_PACK(a)) |
---------------------------------
| [{a: 1}]                      |
---------------------------------
(1 tuple)
Time: 20.27ms (compiling), 1.43ms (executing)

@andyfengHKU
Copy link
Contributor

@acquamarin try with DDL. This is related to PR #1955 which fixes the DDL part but still fail the reader part.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants