incubator-hugegraph
incubator-hugegraph copied to clipboard
Setting property with cardinality 'single' fails
Expected behavior 期望表现
Setting a vertex property with cardinality 'single' should succeed:
g.addV('Test').property(single, 'foo', 123).property(single, 'bar', 123)
Actual behavior 实际表现
I'm getting error:
All non-null property keys [foo, bar] of vertex label 'Test' must be setted, missed keys [foo, bar]
Running without the cardinality attribute works as expected:
g.addV('Test').property('foo', 123).property('bar', 123)
Steps to reproduce the problem 复现步骤
Run the query above.
Schema(VertexLabel, EdgeLabel, IndexLabel) 元数据结构
graph.schema().propertyKey('foo').asInt().ifNotExist().create()
graph.schema().propertyKey('bar').asInt().ifNotExist().create()
graph.schema().vertexLabel('Test').properties('foo', 'bar').ifNotExist().create()
Specifications of environment 环境信息
- hugegraph version: v0.10.4
- operating system: Ubuntu 18.04.3 LTS
- hugegraph backend: RocksDB