Skip to content

Commit

Permalink
fix some error (#2665)
Browse files Browse the repository at this point in the history
  • Loading branch information
cooper-lzy committed Mar 20, 2023
1 parent 82d8801 commit 443ab3e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs-2.0/3.ngql-guide/13.edge-statements/1.insert-edge.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ INSERT EDGE [IF NOT EXISTS] <edge_type> ( <prop_name_list> ) VALUES

- `dst_vid`:目的点 ID,表示边的终点。

- `rank`:可选项。边的 rank 值。默认值为`0`
- `rank`:可选项。边的 rank 值。数据类型为`int`默认值为`0`

!!! compatibility "openCypher 兼容性"

Expand Down Expand Up @@ -97,6 +97,6 @@ nebula> FETCH PROP ON e2 "14"->"15"@1 YIELD edge AS e;
!!! Note

* NebulaGraph {{ nebula.release }} 允许存在悬挂边(Dangling edge)。因此可以在起点或者终点存在前,先写边;此时就可以通过 `<edgetype>._src`或`<edgetype>._dst`获取到(尚未写入的)点 VID(不建议这样使用)。
* 目前还不能保证操作的原子性,如果失败请重试,否则会发生部分写入。此时读取该数据的行为是未定义的。
* 目前还不能保证操作的原子性,如果失败请重试,否则会发生部分写入。此时读取该数据的行为是未定义的。例如写入操作涉及到多个机器时,可能会出现插入单个边的正反向边只写入成功一个,或者插入多个边时只写入成功一部分,此时会返回报错,请重新执行命令。
* 并发写入同一条边会报`edge conflict`错误,可稍后重试。
* `边的 INSERT 速度`大约是点的 INSERT 速度一半。原因是 INSERT 边会对应 storaged 的两个 INSERT,`INSERT 点`对应 storaged 的一个 INSERT。
2 changes: 1 addition & 1 deletion docs-2.0/3.ngql-guide/13.edge-statements/3.upsert-edge.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ SET <update_prop>
| `ON <edge_type>` || 指定 Edge type。要修改的属性必须在这个 Edge type 内。 | `ON serve` |
| `<src_vid>` || 指定边的起始点 ID。 | `"player100"` |
| `<dst_vid>` || 指定边的目的点 ID。 | `"team204"` |
| `<rank>` || 指定边的 rank 值。 | `10` |
| `<rank>` || 指定边的 rank 值。数据类型为`int` | `10` |
| `SET <update_prop>` || 指定如何修改属性值。| `SET start_year = start_year +1` |
| `WHEN <condition>` || 指定过滤条件。 | `WHEN end_year < 2010` |
|`YIELD <output>`|| 指定语句的输出格式。 | `YIELD start_year AS Start_Year` |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,9 @@ CentOS 7.9.2009
source: nebula
sink: csv
}
metaAddress:"127.0.0.1:9559"
space:"test"
label:"person"
# config the fields you want to export from nebula
fields: [nebula-field-0, nebula-field-1, nebula-field-2]
noFields:false # default false, if true, just export id
Expand All @@ -138,6 +140,9 @@ CentOS 7.9.2009
source: nebula
sink: csv
}
metaAddress:"127.0.0.1:9559"
space:"test"
label:"friend"
# config the fields you want to export from nebula
fields: [nebula-field-0, nebula-field-1, nebula-field-2]
noFields:false # default false, if true, just export id
Expand Down

0 comments on commit 443ab3e

Please sign in to comment.