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

CREATE REL TABLE with MAP causes "Error: Copy exception: Invalid type for property list creation." + CLI freeze #2184

Closed
sapalli2989 opened this issue Oct 11, 2023 · 3 comments · Fixed by #2584
Assignees
Labels
bug Something isn't working feature New features or missing components of existing features

Comments

@sapalli2989
Copy link
Contributor

sapalli2989 commented Oct 11, 2023

Works:

CREATE NODE TABLE T(name STRING, PRIMARY KEY(name));
CREATE NODE TABLE T2(name STRING, myprops MAP(STRING,STRING), PRIMARY KEY(name));
CREATE REL TABLE KIND_OF(FROM T TO T);
CREATE REL TABLE KIND_OF2(FROM T TO T, mystring STRING);

Causes error:

kuzu> CREATE REL TABLE KIND_OF3(FROM T TO T, myprops MAP(STRING,STRING));
Error: Copy exception: Invalid type for property list creation.

Now subsequent commands afterwards cause CLI freeze/loop:

kuzu> MATCH(n) return n;
// CLI freezes / idles

(Version: kuzu compiled from today's sources)

@ray6080
Copy link
Contributor

ray6080 commented Oct 11, 2023

Hi @sapalli2989 , thanks for your issue! There are currently some data type support missing in rel table, including UNION, MAP and STRUCT. Will add them soon after a rework of the storage for rel table 😄 , though we should throw errors during the binding stage. And the CI freeze looks like a bug.

@ray6080 ray6080 added bug Something isn't working feature New features or missing components of existing features labels Oct 11, 2023
@sapalli2989
Copy link
Contributor Author

Hi @ray6080, good to know. Just being curious: Is there a rough ETA for storage rel table rework? Until then, I'd suggest to change error message to something like "Error: MAP, UNION, STRUCT currently are not supported in REL TABLE".

@ray6080
Copy link
Contributor

ray6080 commented Oct 12, 2023

The rework will be done within this month.
For the error message, we do plan to change it in our coming bug fix release so it's more clear.

@ray6080 ray6080 mentioned this issue Oct 12, 2023
10 tasks
benjaminwinger added a commit that referenced this issue Dec 14, 2023
benjaminwinger added a commit that referenced this issue Dec 18, 2023
benjaminwinger added a commit that referenced this issue Dec 18, 2023
benjaminwinger added a commit that referenced this issue Dec 18, 2023
benjaminwinger added a commit that referenced this issue Dec 18, 2023
benjaminwinger added a commit that referenced this issue Dec 18, 2023
benjaminwinger added a commit that referenced this issue Dec 18, 2023
benjaminwinger added a commit that referenced this issue Dec 18, 2023
benjaminwinger added a commit that referenced this issue Dec 18, 2023
benjaminwinger added a commit that referenced this issue Jan 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working feature New features or missing components of existing features
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants