From 82c2390d470e6c8b61d9930cc6deacb2e3951a30 Mon Sep 17 00:00:00 2001 From: Nicole00 Date: Thu, 18 Aug 2022 16:06:19 +0800 Subject: [PATCH] add example for delete vertex with edge --- .../nebula/examples/connector/NebulaSparkWriterExample.scala | 3 +++ 1 file changed, 3 insertions(+) diff --git a/example/src/main/scala/com/vesoft/nebula/examples/connector/NebulaSparkWriterExample.scala b/example/src/main/scala/com/vesoft/nebula/examples/connector/NebulaSparkWriterExample.scala index 2fe34482..279935f9 100644 --- a/example/src/main/scala/com/vesoft/nebula/examples/connector/NebulaSparkWriterExample.scala +++ b/example/src/main/scala/com/vesoft/nebula/examples/connector/NebulaSparkWriterExample.scala @@ -205,6 +205,9 @@ object NebulaSparkWriterExample { .withUser("root") .withPasswd("nebula") .withWriteMode(WriteMode.DELETE) + // config deleteEdge true, means delete related edges when delete vertex + // refer https://docs.nebula-graph.com.cn/master/3.ngql-guide/12.vertex-statements/4.delete-vertex/#_1 + .withDeleteEdge(true) .build() df.write.nebula(config, nebulaWriteVertexConfig).writeVertices() }