[Doc] Fix typo for stream load content in basic-usage.md (#4185)

This commit is contained in:
caiconghui
2020-07-27 03:50:15 -05:00
committed by GitHub
parent 94ac0f43dc
commit 9e5ca697f3
2 changed files with 8 additions and 8 deletions

View File

@ -268,17 +268,17 @@ The local file `table1_data` takes `,` as the separation between data, and the s
Example 2: With "table2_20170707" as Label, import table2 tables using the local file table2_data.
```
curl --location-trusted -u test:test -H "label:table2_20170707" -H "column_separator:," -T table1_data http://127.0.0.1:8030/api/example_db/table2/_stream_load
curl --location-trusted -u test:test -H "label:table2_20170707" -H "column_separator:|" -T table2_data http://127.0.0.1:8030/api/example_db/table2/_stream_load
```
The local file `table2_data'is separated by `t'. The details are as follows:
The local file `table2_data'is separated by `|'. The details are as follows:
```
2017-07-03 1 1 jim 2
2017-07-05 2 1 grace 2
2017-07-12 3 2 tom 2
2017-07-15 4 3 bush 3
2017-07-12 5 3 helen 3
2017-07-03|1|1|jim|2
2017-07-05|2|1|grace|2
2017-07-12|3|2|tom|2
2017-07-15|4|3|bush|3
2017-07-12|5|3|helen|3
```
> Notes:

View File

@ -267,7 +267,7 @@ curl --location-trusted -u test:test -H "label:table1_20170707" -H "column_separ
示例2: 以 "table2_20170707" 为 Label,使用本地文件 table2_data 导入 table2 表。
```
curl --location-trusted -u test:test -H "label:table2_20170707" -H "column_separator:|" -T table1_data http://127.0.0.1:8030/api/example_db/table2/_stream_load
curl --location-trusted -u test:test -H "label:table2_20170707" -H "column_separator:|" -T table2_data http://127.0.0.1:8030/api/example_db/table2/_stream_load
```
本地文件 `table2_data``|` 作为数据之间的分隔,具体内容如下: