Dgraph: Flat response in Master (maybe added @normalize by default)

Created on 16 Mar 2019  路  6Comments  路  Source: dgraph-io/dgraph

  • What version of Dgraph are you using?
Dgraph version   : v1.0.12-rc3-225-g207e1349
Commit SHA-1     : 207e1349
Commit timestamp : 2019-03-15 16:22:58 -0700
Branch           : master
Go version       : go1.12

Captura de Tela 2019-03-15 a虁s 23 42 01

kinbug

All 6 comments

I am not able to reproduce this result in master. I opened https://github.com/dgraph-io/dgraph/pull/3168 to add a test with this exact case and I am seeing an unflattened response.

Hey @martinmr I've tested again - Still happening on master in my machine. I cleanup everething on my machine. Cleaned the go path. Did "go get (...)/dgraph/..." and "make dgraph". And ./dgraph bulk -f . -s 1million.schema - But my schema was empty. I'll try with a updated schema. However I guess this should not happen even with empty schema.

Okay, by adding "[uid]" in the "director.film" it worked again. So we should set [uid] (in the schema parser) by default to avoid this. This would assume that Edges are always one to many until the user sets otherwise.

But there is a small problem, I will investigate this. This new feature was not supposed to take on a one-to-one relationship? I am seeing with this behavior a relation one to many but in list. That's odd.

Can you clarify the last paragraph. I don't understand.

Also, the test I am running did not have the pred "director.film" in the schema but it still worked. However, I am using transactions (basically the live loader) to load the data. I am guessing the bulk loader might be the root cause of this issue.

Forget the last paragraph. I've Just tested and indeed the only issue seems to be bulkload.

So, bulkload needs to add [uid] by default.

Ok. I'll look into the bulkload. I remember adding logic to make default predicates equivalent to [uid] but that was only in the liveloader.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

captain-me0w picture captain-me0w  路  4Comments

bytefish picture bytefish  路  4Comments

marvin-hansen picture marvin-hansen  路  4Comments

mbudge picture mbudge  路  3Comments

pjebs picture pjebs  路  4Comments