From 7d6e8ca8c5a4a5317b835ad14c596c231981c282 Mon Sep 17 00:00:00 2001 From: diaohancai <550630588@qq.com> Date: Mon, 13 Nov 2023 16:56:22 +0800 Subject: [PATCH] chore: nullableKeys test --- .../computer/algorithm/sampling/RandomWalkTest.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/computer-test/src/main/java/org/apache/hugegraph/computer/algorithm/sampling/RandomWalkTest.java b/computer-test/src/main/java/org/apache/hugegraph/computer/algorithm/sampling/RandomWalkTest.java index c4e2940e6..2d1a00c6e 100644 --- a/computer-test/src/main/java/org/apache/hugegraph/computer/algorithm/sampling/RandomWalkTest.java +++ b/computer-test/src/main/java/org/apache/hugegraph/computer/algorithm/sampling/RandomWalkTest.java @@ -62,7 +62,7 @@ public static void setup() { SchemaManager schema = client.schema(); schema.propertyKey(PROPERTY_KEY) - .asInt() + .asDouble() .ifNotExist() .create(); schema.vertexLabel("user") @@ -73,6 +73,7 @@ public static void setup() { .sourceLabel("user") .targetLabel("user") .properties(PROPERTY_KEY) + .nullableKeys(PROPERTY_KEY) .ifNotExist() .create(); @@ -89,10 +90,10 @@ public static void setup() { Vertex vG = graph.addVertex(T.LABEL, "user", T.ID, "G"); vA.addEdge("know", vB, PROPERTY_KEY, 9); - vA.addEdge("know", vC, PROPERTY_KEY, 1); + vA.addEdge("know", vC); vA.addEdge("know", vD, PROPERTY_KEY, 3); vB.addEdge("know", vC, PROPERTY_KEY, 2); - vC.addEdge("know", vA, PROPERTY_KEY, 1); + vC.addEdge("know", vA); vC.addEdge("know", vE, PROPERTY_KEY, 2); vD.addEdge("know", vA, PROPERTY_KEY, 7); vD.addEdge("know", vC, PROPERTY_KEY, 1);