Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix some error #2665

Merged
merged 1 commit into from
Mar 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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