Skip to content

Commit

Permalink
Importer : support for nullable prop (#2450)
Browse files Browse the repository at this point in the history
* Update use-importer.md

* Apply suggestions from code review

Co-authored-by: abby.huang <[email protected]>

Co-authored-by: randomJoe211 <[email protected]>
Co-authored-by: abby.huang <[email protected]>
  • Loading branch information
3 people authored Jan 11, 2023
1 parent a914cfc commit 16878f1
Showing 1 changed file with 9 additions and 0 deletions.
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

0 comments on commit 16878f1

Please sign in to comment.