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

Update use-importer.md #2543

Merged
merged 3 commits into from
Feb 2, 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
11 changes: 10 additions & 1 deletion docs-2.0/nebula-importer/use-importer.md
Original file line number Diff line number Diff line change
Expand Up @@ -261,13 +261,20 @@ schema:
index: 1
- name: gender
type: string
defaultValue: "male"
- name: phone
type: string
nullable: true
- name: wechat
- name: email
type: string
nullable: true
nullValue: "__NULL__"
- name: address
type: string
nullable: true
alternativeIndices:
- 7
- 8
```

|参数|默认值|是否必须|说明|
Expand All @@ -283,6 +290,8 @@ schema:
|`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`。|
|`files.schema.vertex.tags.props.alternativeIndices`|-|否|当`nullable`为`false`时忽略。该属性根据索引顺序从 csv 中获取,直到不等于`nullValue`。|
|`files.schema.vertex.tags.props.defaultValue`|-|否当`nullable`为`false`时忽略。根据`index`和`alternativeIndices`获取的所有值为`nullValue`时设置默认值。|

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