kuzu icon indicating copy to clipboard operation
kuzu copied to clipboard

Error: Parser exception: Invalid input <CREATE REL TABLE IS>: expected rule kU_DDL

Open sapalli2989 opened this issue 1 year ago • 4 comments

kuzu> CREATE NODE TABLE V (id STRING, PRIMARY KEY(id));
kuzu> CREATE REL TABLE IS (FROM V TO V);
Error: Parser exception: Invalid input <CREATE REL TABLE IS>: expected rule kU_DDL (line: 1, offset: 17)
"CREATE REL TABLE IS (FROM V TO V)"
                  ^^

:IS probably is a frequently chosen relation ship name.

Suggestion:

  • allow IS relationship name
  • Alternatively, improve develoep experience by providing more suitable error message, that IS is a reserved keyword and cannot be used as relationship name.

sapalli2989 avatar Jan 17 '24 10:01 sapalli2989