dgraph icon indicating copy to clipboard operation
dgraph copied to clipboard

Schemafile should have stricter parsing.

Open pawanrawal opened this issue 9 years ago • 3 comments

I tried using the goldendata.schema file to load data on Dgraph master. Although, I had scalar block because of which the scalar types weren't parsed properly, I still did not get any error. Though, when I tried to perform a query which uses indexing, I didn't get back any results.

Either we shouldn't start and tell the user to remove the scalar block or we should be able to parse the scalars within the scalar block?

pawanrawal avatar Mar 17 '17 00:03 pawanrawal

+1. Have faced the same issue. And would have preferred an invalid schema warning which says that filter kind of queries won't work on work fields.

On a side note, do we allow to create / update schema once dgraph server is started ? I know that one can reindex the fields in existing schema, but not sure if we can add / remove fields from being indexed.

On Fri, Mar 17, 2017, 5:45 AM Pawan Rawal [email protected] wrote:

I tried using the goldendata.schema file to load data on Dgraph master. Although, I had scalar block because of which the scalar types weren't parsed properly, I still did not get any error. Though, when I tried to perform a query which uses indexing, I didn't get back any results.

Either we shouldn't start and tell the user to remove the scalar block or we should be able to parse the scalars within the scalar block?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/dgraph-io/dgraph/issues/709, or mute the thread https://github.com/notifications/unsubscribe-auth/AB-j0ST420CKMt5bWQb0x08aCzyJuCR9ks5rmdCfgaJpZM4MgCP5 .

foobatman avatar Mar 17 '17 02:03 foobatman

We are going to remove the schema file. From next release you would be able to set the schema through gql query

mutation { schema { name: string @index initial_release_date: date @index director.film:uid @reverse } }

janardhan1993 avatar Mar 17 '17 03:03 janardhan1993

@davcdhanesh1 From next release you will be able to update/create schema. The changes are merged to master

This issue is no longer valid as we have removed schema file.

janardhan1993 avatar Mar 23 '17 09:03 janardhan1993