From 520628312c1da31bb428fcf5d3ded681def4406e Mon Sep 17 00:00:00 2001 From: vaughn Date: Thu, 22 Dec 2022 19:45:25 +0800 Subject: [PATCH] fix: tinkerpop unit schema no define --- .../org/apache/hugegraph/tinkerpop/TestGraph.java | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/hugegraph-test/src/main/java/org/apache/hugegraph/tinkerpop/TestGraph.java b/hugegraph-test/src/main/java/org/apache/hugegraph/tinkerpop/TestGraph.java index 9eadc72dd3..f2be000b98 100644 --- a/hugegraph-test/src/main/java/org/apache/hugegraph/tinkerpop/TestGraph.java +++ b/hugegraph-test/src/main/java/org/apache/hugegraph/tinkerpop/TestGraph.java @@ -659,6 +659,8 @@ private void initBasicPropertyKey() { schema.propertyKey("f").asFloat().ifNotExist().create(); schema.propertyKey("i").asInt().ifNotExist().create(); schema.propertyKey("l").asLong().ifNotExist().create(); + schema.propertyKey("p").asText().ifNotExist().create(); + schema.propertyKey("k").asText().ifNotExist().create(); schema.propertyKey("here").ifNotExist().create(); schema.propertyKey("to-change").ifNotExist().create(); schema.propertyKey("to-remove").ifNotExist().create(); @@ -704,7 +706,7 @@ private void initBasicVertexLabelV(IdStrategy idStrategy, "favoriteColor", "aKey", "age", "boolean", "float", "double", "string", "integer", "long", "myId", "location", "x", "y", "s", - "n", "d", "f", "i", "l", "to-change", + "n", "d", "f", "i", "l", "p", "k", "to-change", "to-remove", "to-keep", "old", "new", "gremlin.partitionGraphStrategy.partition", "color", "blah") @@ -714,7 +716,7 @@ private void initBasicVertexLabelV(IdStrategy idStrategy, "favoriteColor", "aKey", "age", "boolean", "float", "double", "string", "integer", "long", "myId", "location", "x", "y", "s", - "n", "d", "f", "i", "l", "to-change", + "n", "d", "f", "i", "l", "p", "k", "to-change", "to-remove", "to-keep", "old", "new", "gremlin.partitionGraphStrategy.partition", "color", "blah") @@ -729,7 +731,7 @@ private void initBasicVertexLabelV(IdStrategy idStrategy, "favoriteColor", "aKey", "age", "boolean", "float", "double", "string", "integer", "long", "myId", "location", "x", "y", "s", - "n", "d", "f", "i", "l", "to-change", + "n", "d", "f", "i", "l", "p", "k", "to-change", "to-remove", "to-keep", "old", "new", "gremlin.partitionGraphStrategy.partition", "color", "blah") @@ -739,7 +741,7 @@ private void initBasicVertexLabelV(IdStrategy idStrategy, "favoriteColor", "aKey", "age", "boolean", "float", "double", "string", "integer", "long", "myId", "location", "x", "y", "s", - "n", "d", "f", "i", "l", "to-change", + "n", "d", "f", "i", "l", "p", "k", "to-change", "to-remove", "to-keep", "old", "new", "gremlin.partitionGraphStrategy.partition", "color", "blah") @@ -754,6 +756,8 @@ private void initBasicVertexLabelV(IdStrategy idStrategy, .ifNotExist().create(); schema.indexLabel("defaultVLByName").onV(defaultVL).by("name") .ifNotExist().create(); + schema.indexLabel("vertexBySome").onV(defaultVL).by("some") + .ifNotExist().create(); } @Watched