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

Execute nGQL error #2826

Closed
Freeself opened this issue Sep 9, 2021 · 3 comments
Closed

Execute nGQL error #2826

Freeself opened this issue Sep 9, 2021 · 3 comments

Comments

@Freeself
Copy link

Freeself commented Sep 9, 2021

nGQL

CREATE TAG IF NOT EXISTS person(`_createTime` STRING,`specific_type` STRING,`key` STRING,`edges` STRING,`name` STRING)

error message

SyntaxError: syntax error near ``_create'
@wey-gu
Copy link
Contributor

wey-gu commented Sep 9, 2021

Sorry @Freeself

It's either not parsed properly or it's not supported (then we should have documented that) the underline cannot be in starting position.

(root@nebula) [basketballplayer]> CREATE TAG IF NOT EXISTS person(`createTime` STRING,`specific_type` STRING,`key` STRING,`edges` STRING,`name` STRING)
Execution succeeded (time spent 3066/45961 us)

Thanks!

@wey-gu
Copy link
Contributor

wey-gu commented Sep 9, 2021

@czpmango could you kindly help confirm if this is should be documented(as naming constraint) or fixed(that a prop name starts with _)?

@czpmango
Copy link
Contributor

@czpmango could you kindly help confirm if this is should be documented(as naming constraint) or fixed(that a prop name starts with _)?

The subsequent implementation will not be changed, and the variable naming rules follow the regular expression ([A-za-z][_A - za-z0-9]*).

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

4 participants