Skip to content

Commit 0f2c853

Browse files
committed
update streaming load docs and tests
1 parent 312c3c6 commit 0f2c853

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

docs/doc/11-integrations/00-api/03-streaming-load.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,13 @@ To create a request with the Streaming Load API, follow the format below:
1616
```bash
1717
curl -H "insert_sql:<value>" -F "upload=@<file_location>" [-F "upload=@<file_location>"] -XPUT http://<user_name>:[password]@<http_handler_host>:<http_handler_port>/v1/streaming_load
1818
```
19-
eg: `curl -H "insert_sql:insert into ontime_streaming_load file_format = (type = 'CSV' skip_header = 1 compression = 'bz2')" -F "upload=@/tmp/ontime_200.csv.bz2" -u root: -XPUT "http://localhost:127.0.0.1:8000/v1/streaming_load"`
2019
## Explaining Argument `-H`
2120

2221
The request usually includes many occurrences of the argument `-H` and each is followed by one of the following parameters to tell Databend how to handle the file you're loading data from. Please note that `insert_sql` is required.
2322

2423
| Parameter | Values | Supported Formats | Examples |
2524
|-------------------------|-------------------------------------|---------------------------|---------------------------------------------------------------------------------------------------------------------------------------|
26-
| insert_sql | [INSERT_statement] + [FILE_FORMAT] | All | -H "insert_sql: insert into ontime format CSV" | | CSV | |
25+
| insert_sql | [INSERT_statement] + [FILE_FORMAT] | All | -H "insert_sql: insert into ontime file_format = (type = 'CSV' skip_header = 1 compression = 'bz2')" | | CSV | |
2726

2827

2928
> FILE_FORMAT = ( TYPE = { CSV | TSV | NDJSON | PARQUET | XML} [ formatTypeOptions ] )

0 commit comments

Comments
 (0)