Skip to content

Support the --xidmap option in Bulkload* #4917

@MichelDiz

Description

@MichelDiz

Update

Previously it was believed that the --store_xids flag had the same behave as --xidmap. However, it is not true. But the --xidmap flag is needed in Bulkloader.

What version of Dgraph are you using?

Dgraph version   : v2.0.0-beta1
Dgraph SHA-256   : 178663a98a3d59879a3d5c42928c89eb5f83afc2bfc0093272941e7a53515847
Commit SHA-1     : 6fac5d7c4
Commit timestamp : 2020-01-30 14:45:54 +1100
Branch           : HEAD
Go version       : go1.13.7

Have you tried reproducing the issue with the latest release?

Yes.

Steps to reproduce the issue (command/config used to run Dgraph).

Update: Ignore these steps, go to my last comment below.

dgraph bulk --store_xids -f ./agrovoc_2019-11-04_lod.nt --format=rdf -s schema.sch
dgraph bulk -x -f ./agrovoc_2019-11-04_lod.nt --format=rdf -s schema.sch

Expected behavior and actual result.

It should create an XID folder to be used in later imports via Live loader.

Origin of this issue: https://discuss.dgraph.io/t/bulk-loader-x-option/6115

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/bulk-loaderIssues related to bulk loading.kind/bugSomething is broken.status/acceptedWe accept to investigate/work on it.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions