Report a Dgraph Bug
What version of Dgraph are you using?
Dgraph Version
$ dgraph version
Dgraph version : v21.03.1
Dgraph codename : rocket-1
Dgraph SHA-256 : a00b73d583a720aa787171e43b4cb4dbbf75b38e522f66c9943ab2f0263007fe
Commit SHA-1 : ea1cb5f35
Commit timestamp : 2021-06-17 20:38:11 +0530
Branch : HEAD
Go version : go1.16.2
jemalloc enabled : true
For Dgraph official documentation, visit https://dgraph.io/docs.
For discussions about Dgraph , visit http://discuss.dgraph.io.
For fully-managed Dgraph Cloud , visit https://dgraph.io/cloud.
Licensed variously under the Apache Public License 2.0 and Dgraph Community License.
Copyright 2015-2021 Dgraph Labs, Inc.
Have you tried reproducing the issue with the latest release?
Yes
What is the hardware spec (RAM, OS)?
MacOS 16GB, but I’m running the standalone docker image dgraph/dgraph:v21.03.1
Steps to reproduce the issue (command/config used to run Dgraph).
I am firing up a standalone docker dgraph instance, and pushing the following graphql schema:
type Building {
id: String! @id
location: Point!
}
I have a json file representing bulk data I want to import:
[{"Building.id":"100085724R","Building.location":{"longitude":22.747430860292567,"latitude":60.061069293715555}}]
I run the following command to live load the test json file into the standalone dgraph instance:
docker compose run dgraph-cli dgraph live --files /seed/test.json --zero dgraph:5080 --alpha dgraph:9080 --upsertPredicate "Building.id"
Expected behaviour and actual result.
I expect live loader to import exactly 1 node at Building.id, with a lat/long Point linked to it at Building.location as the Building type.
Instead, dgraph dies badly:
Running transaction with dgraph endpoint: dgraph:9080
Found 1 data file(s) to process
Processing data file "/seed/test.json"
Error while mutating: Input for predicate "Building.location" of type scalar is uid. Edge: entity:4000004 attr:"\000\000\000\000\000\000\000\000Building.location" value_type:UID value_id:4000005 s.Code Unknown
Error while mutating: Input for predicate "Building.location" of type scalar is uid. Edge: entity:4000004 attr:"\000\000\000\000\000\000\000\000Building.location" value_type:UID value_id:4000005 s.Code Unknown
Error while mutating: Input for predicate "Building.location" of type scalar is uid. Edge: entity:4000004 attr:"\000\000\000\000\000\000\000\000Building.location" value_type:UID value_id:4000005 s.Code Unknown
Error while mutating: Input for predicate "Building.location" of type scalar is uid. Edge: entity:4000004 attr:"\000\000\000\000\000\000\000\000Building.location" value_type:UID value_id:4000005 s.Code Unknown
Error while mutating: Input for predicate "Building.location" of type scalar is uid. Edge: entity:4000004 attr:"\000\000\000\000\000\000\000\000Building.location" value_type:UID value_id:4000005 s.Code Unknown
Error while mutating: Input for predicate "Building.location" of type scalar is uid. Edge: entity:4000004 attr:"\000\000\000\000\000\000\000\000Building.location" value_type:UID value_id:4000005 s.Code Unknown
Error while mutating: Input for predicate "Building.location" of type scalar is uid. Edge: entity:4000004 attr:"\000\000\000\000\000\000\000\000Building.location" value_type:UID value_id:4000005 s.Code Unknown
Error while mutating: Input for predicate "Building.location" of type scalar is uid. Edge: entity:4000004 attr:"\000\000\000\000\000\000\000\000Building.location" value_type:UID value_id:4000005 s.Code Unknown
Error while mutating: Input for predicate "Building.location" of type scalar is uid. Edge: entity:4000004 attr:"\000\000\000\000\000\000\000\000Building.location" value_type:UID value_id:4000005 s.Code Unknown
Error while mutating: Input for predicate "Building.location" of type scalar is uid. Edge: entity:4000004 attr:"\000\000\000\000\000\000\000\000Building.location" value_type:UID value_id:4000005 s.Code Unknown
Error while mutating: Input for predicate "Building.location" of type scalar is uid. Edge: entity:4000004 attr:"\000\000\000\000\000\000\000\000Building.location" value_type:UID value_id:4000005 s.Code Unknown
Error while mutating: Input for predicate "Building.location" of type scalar is uid. Edge: entity:4000004 attr:"\000\000\000\000\000\000\000\000Building.location" value_type:UID value_id:4000005 s.Code Unknown
Error while mutating: Input for predicate "Building.location" of type scalar is uid. Edge: entity:4000004 attr:"\000\000\000\000\000\000\000\000Building.location" value_type:UID value_id:4000005 s.Code Unknown