From 805ae2a1320a929c3f9ad3b3675181e81e39757d Mon Sep 17 00:00:00 2001 From: vaughn Date: Thu, 22 Dec 2022 19:45:25 +0800 Subject: [PATCH] fix: tinkerpop unit schema --- .../main/java/org/apache/hugegraph/tinkerpop/TestGraph.java | 4 ++++ 1 file changed, 4 insertions(+) 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..9e5e1e817a 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(); @@ -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