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

I can't use '<>' in schema #4933

Closed
glacierck opened this issue Mar 13, 2020 · 1 comment · Fixed by #4937
Closed

I can't use '<>' in schema #4933

glacierck opened this issue Mar 13, 2020 · 1 comment · Fixed by #4937
Assignees
Labels
area/schema Issues related to the schema language and capabilities. kind/bug Something is broken. priority/P1 Serious issue that requires eventual attention (can wait a bit) status/accepted We accept to investigate/work on it.

Comments

@glacierck
Copy link

What version of Dgraph are you using?

v1.2.1

Have you tried reproducing the issue with the latest release?

yes

What is the hardware spec (RAM, OS)?

win10,16G,cmd

Steps to reproduce the issue (command/config used to run Dgraph).

schema(type: ) {}
...
schema(type: <人物>) {}

return :
Error Name: t

Message: while lexing schema(type: ) {} at line 1 column 13: Unrecognized character inside schema: U+003C '<'

Expected behaviour and actual result.

@MichelDiz MichelDiz added area/schema Issues related to the schema language and capabilities. kind/bug Something is broken. status/accepted We accept to investigate/work on it. labels Mar 13, 2020
@martinmr martinmr self-assigned this Mar 13, 2020
@martinmr martinmr added the priority/P1 Serious issue that requires eventual attention (can wait a bit) label Mar 13, 2020
martinmr added a commit that referenced this issue Mar 14, 2020
Special predicate names (i.e using Chinese characters) need to be
wrapped around "<" and ">" brackets but the lexer does not currently
support that. This PR adds support for that syntax.

Fixes #4933
martinmr added a commit that referenced this issue Mar 16, 2020
Special predicate names (i.e using Chinese characters) need to be
wrapped around "<" and ">" brackets but the lexer does not currently
support that. This PR adds support for that syntax.

Fixes #4933
martinmr added a commit that referenced this issue Mar 17, 2020
Special predicate names (i.e using Chinese characters) need to be
wrapped around "<" and ">" brackets but the lexer does not currently
support that. This PR adds support for that syntax.

Fixes #4933
@glacierck
Copy link
Author

thank everybody

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/schema Issues related to the schema language and capabilities. kind/bug Something is broken. priority/P1 Serious issue that requires eventual attention (can wait a bit) status/accepted We accept to investigate/work on it.
Development

Successfully merging a pull request may close this issue.

3 participants