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

Importer : support for nullable prop #2450

Merged
merged 2 commits into from
Jan 11, 2023
Merged
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
9 changes: 9 additions & 0 deletions docs-2.0/nebula-importer/use-importer.md
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,13 @@ schema:
index: 1
- name: gender
type: string
- name: phone
type: string
nullable: true
- name: wechat
type: string
nullable: true
nullValue: "__NULL__"
```

|参数|默认值|是否必须|说明|
Expand All @@ -274,6 +281,8 @@ schema:
|`files.schema.vertex.tags.props.name`|-|是|Tag 属性名称,必须和 NebulaGraph 中的 Tag 属性一致。|
|`files.schema.vertex.tags.props.type`|-|是|属性数据类型,支持`bool`、 `int`、 `float`、 `double`、 `string`、 `time`、 `timestamp`、 `date`、 `datetime`、 `geography`、 `geography(point)`、 `geography(linestring)` 和 `geography(polygon)`。|
|`files.schema.vertex.tags.props.index`|-|否|属性对应 CSV 文件中列的序号。|
|`files.schema.vertex.tags.props.nullable`|`false`|否|属性是否可以为`NULL`,可选`true`或者`false`。|
|`files.schema.vertex.tags.props.nullValue`|`""`|否|`nullable`设置为`true`时,属性的值与`nullValue`相等则将该属性值设置为`NULL`。|

!!! note
CSV 文件中列的序号从 0 开始,即第一列的序号为 0,第二列的序号为 1。
Expand Down