-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Closed
Labels
area/bulk-loaderIssues related to bulk loading.Issues related to bulk loading.area/typesIssues related to the type system.Issues related to the type system.kind/bugSomething is broken.Something is broken.priority/P1Serious issue that requires eventual attention (can wait a bit)Serious issue that requires eventual attention (can wait a bit)status/acceptedWe accept to investigate/work on it.We accept to investigate/work on it.
Milestone
Description
What version of Dgraph are you using?
Dgraph version : v1.1.0
Dgraph SHA-256 : 7d4294a80f74692695467e2cf17f74648c18087ed7057d798f40e1d3a31d2095
Commit SHA-1 : ef7cdb2
Commit timestamp : 2019-09-04 00:12:51 -0700
Branch : HEAD
Go version : go1.12.7
Have you tried reproducing the issue with the latest release?
Yes
What is the hardware spec (RAM, OS)?
Attempted on Ubuntu 18.04 and using Dgraph docker
Steps to reproduce the issue (command/config used to run Dgraph).
Start Zero (the commands are actually in the docker-compose file)
dgraph zero --my=zero:5080
Feed data and schema into Dgraph bulk
data file
_:brand1 <dgraph.type> "Brand" .
_:brand1 <name> "brand1" .
_:brand2 <dgraph.type> "Brand" .
_:brand2 <name> "brand2" .
_:product1 <dgraph.type> "Product" .
_:product1 <brand> _:brand1 .
_:product1 <name> "name1" .
_:product1 <pid> "abc" .
_:product2 <dgraph.type> "Product" .
_:product2 <brand> _:brand2 .
_:product2 <name> "name2" .
_:product2 <pid> "123" .
_:product3 <dgraph.type> "Product" .
_:product3 <brand> _:brand2 .
_:product3 <name> "name3" .
_:product3 <pid> "ab1" .
schema file
type Product {
name: string
brand: uid
pid: string
}
type Brand {
name: string
}
name: string @index(term) .
pid: string @index(hash) .
brand: uid .
Run Dgraph Bulk on data and schema
dgraph bulk --schema ./data/smallschema.txt -f ./data/small.txt --format=rdf --reduce_shards=2 --num_go_routines=2 --map_shards=2
Start alphas pointing to the generated directories
dgraph alpha --my=server:7080 --lru_mb=2048 --zero=zero:5080 -p out/0/p/
dgraph alpha --my=server:7081 --lru_mb=2048 --zero=zero:5080 -p out/1/p/ -o=1
Expected behaviour and actual result.
Query all objects with type Product
q(func: type(Product)) {
name
uid
}
Expected all product objects returned
Actual result is an empty result
Discussion link on forums: https://discuss.dgraph.io/t/cant-query-type-data-on-bulk-loader/5038
Metadata
Metadata
Assignees
Labels
area/bulk-loaderIssues related to bulk loading.Issues related to bulk loading.area/typesIssues related to the type system.Issues related to the type system.kind/bugSomething is broken.Something is broken.priority/P1Serious issue that requires eventual attention (can wait a bit)Serious issue that requires eventual attention (can wait a bit)status/acceptedWe accept to investigate/work on it.We accept to investigate/work on it.