We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
If you suspect this could be a bug, follow the template.
What version of Dgraph are you using? v1.0.12-rc5
Have you tried reproducing the issue with latest release? yes
What is the hardware spec (RAM, OS)? n/a
Steps to reproduce the issue (command/config used to run Dgraph).
{ set { _:a <pred/slash> "1" . _:b <pred*star> "2" . } }
/admin/export
pred*star:default . pred/slash:default .
$ dgraph live -r ./g01.rdf.gz -s ./g01.schema.gz -d localhost:9080 -z localhost:5080 ... Processing ./g01.schema.gz Error while processing schema file "./g01.schema.gz": rpc error: code = Unknown desc = Missing colon
We can repeat the same steps with IRI-named predicates which results in a similar but different error. e.g. this mutation:
{ set { _:c <故障> "3" . } }
The exported schema file will contain:
故障:default .
And the live load will show this error:
Processing ./g01.schema.gz Error while processing schema file "./dgraph.r48.u0123.0232/g01.schema.gz": rpc error: code = Unknown desc = while lexing 故障:default . : Invalid schema. Unexpected 故
I expect that an export can be imported as-is without any modifications.
The schema update works if I modify the exported schema file by surrounding the predicate names with <>.
<>
<pred*star>:default . <pred/slash>:default . <故障>:default .
The text was updated successfully, but these errors were encountered:
Issue 2925: export schema with special chars (#2929)
144c7fe
Fixes #2925. * Add angle brackets to more exported predicates. * Add more predicate export tests.
Issue 2925: export schema with special chars (dgraph-io#2929)
ae59c80
Fixes dgraph-io#2925. * Add angle brackets to more exported predicates. * Add more predicate export tests.
codexnull
No branches or pull requests
If you suspect this could be a bug, follow the template.
What version of Dgraph are you using?
v1.0.12-rc5
Have you tried reproducing the issue with latest release?
yes
What is the hardware spec (RAM, OS)?
n/a
Steps to reproduce the issue (command/config used to run Dgraph).
/admin/export
. The schema file has the following lines:We can repeat the same steps with IRI-named predicates which results in a similar but different error. e.g. this mutation:
The exported schema file will contain:
And the live load will show this error:
I expect that an export can be imported as-is without any modifications.
The schema update works if I modify the exported schema file by surrounding the predicate names with
<>
.The text was updated successfully, but these errors were encountered: