1

我创建了一个带有自定义顶点 ID 的模式,例如:

schema.vertexLabel('foo').partitionKey('_id').ifNotExists().create()

然后我用数据填充了一个图表。现在我想通过 GraphSON 将该数据传输到另一个图表。新图实例具有相同的架构。

为此,我首先从填充的图表中导出数据:

graph.io(graphson()).writeGraph('/integration-data/flex-test-data.json')

但是,当我尝试将数据导入空图形实例时:

graph.io(graphson()).readGraph('/integration-data/flex-test-data.json')

我收到错误消息“具有自定义 ID 的顶点必须在创建时指定其 ID。” 这在我切换到自定义 ID 之前有效。我已确认 id 存在于导出的文件中。

这是不可能的吗?

4

1 回答 1

2

您正在运行什么版本的 DSE Graph。5.1.6 中已针对此问题解决了一个缺陷。

DSP-14568

https://docs.datastax.com/en/dse/5.1/dse-admin/datastax_enterprise/releaseNotes/RNdse.html#RNdse516__516resIss

于 2018-03-21T19:12:59.497 回答