Skip to content

Commit

Permalink
update use-importer.md: add notes on csv delimiter (#2285)
Browse files Browse the repository at this point in the history
* update use-importer.md

add notes on csv delimiter

* Update docs-2.0/nebula-importer/use-importer.md

---------

Co-authored-by: abby.huang <[email protected]>
  • Loading branch information
jyf111 and abby-cyber authored Oct 11, 2023
1 parent 0a82753 commit 1334a34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs-2.0/nebula-importer/use-importer.md
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ The configuration mainly includes the following parts:
|:---|:---|:---|:---|
|`sources.path`</br>`sources.s3`</br>`sources.oss`</br>`sources.ftp`</br>`sources.sftp`</br>`sources.hdfs` |-| No | Specify data source information, such as local file, HDFS, and S3. Only one source can be configured for the `source`. Configure multiple sources in multiple `source`.</br>See the comments in the example for configuration items for different data sources. |
|`sources.batch` |`256`| No | The batch size for executing statements when importing this data source. The priority is higher than `manager.batch`. |
|`sources.csv.delimiter` |`,`| No | Specifies the delimiter for the CSV file. Only 1-character string separators are supported. When using special characters as separators, they need to be escaped. For example, when the delimiter is `0x03` in hexadecimal, i.e. `Ctrl+C`, the escape is written as `"\x03"` or `"\u0003"`. For details on escaping special characters in yaml format, see [Escaped Characters](https://yaml.org/spec/1.2.2/#escaped-characters).| |
|`sources.csv.delimiter` |`,`| No | Specifies the delimiter for the CSV file. Only 1-character string separators are supported. Special characters like tabs (`\t`) and hexadecimal values (e.g., `0x03` or `Ctrl+C`) must be properly escaped and enclosed in double quotes, such as `"\t"` for tabs and `"\x03"` or `"\u0003"` for hexadecimal values, instead of using single quotes. For details on escaping special characters in yaml format, see [Escaped Characters](https://yaml.org/spec/1.2.2/#escaped-characters).| |
|`sources.csv.withHeader` |`false`| No | Whether to ignore the first record in the CSV file. |
|`sources.csv.lazyQuotes` |`false`| No | Whether to allow lazy quotes. If `lazyQuotes` is true, a quote may appear in an unquoted field and a non-doubled quote may appear in a quoted field. |
|`sources.tags.name` |-| Yes | The tag name. |
Expand Down

0 comments on commit 1334a34

Please sign in to comment.