Skip to content

Commit

Permalink
Update 02-local.md
Browse files Browse the repository at this point in the history
  • Loading branch information
soyeric128 committed Jan 13, 2023
1 parent 82eb60e commit 6fc005e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/doc/12-load-data/02-local.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ CREATE TABLE books
Create and send the API request with the following scripts:

```bash
curl -XPUT 'http://root:@127.0.0.1:8000/v1/streaming_load' -H 'insert_sql: insert into book_db.books file_format = (type = "CSV" skip_header = 0 field_delimiter = "," record_delimiter = "\n")' -F 'upload=@"./books.csv"'
curl -XPUT 'http://root:@127.0.0.1:8000/v1/streaming_load' -H "insert_sql: insert into book_db.books file_format = (type = 'CSV' skip_header = 0 field_delimiter = ',' record_delimiter = '\n')" -F 'upload=@"./books.csv"'
```

Response Example:
Expand Down Expand Up @@ -101,7 +101,7 @@ CREATE TABLE bookcomments
Create and send the API request with the following scripts:

```bash
curl -XPUT 'http://root:@127.0.0.1:8000/v1/streaming_load' -H 'insert_sql: insert into book_db.bookcomments(title,author,date) file_format = (type = "CSV" skip_header = 0 field_delimiter = "," record_delimiter = "\n")' -F 'upload=@"./books.csv"'
curl -XPUT 'http://root:@127.0.0.1:8000/v1/streaming_load' -H "insert_sql: insert into book_db.bookcomments(title,author,date) file_format = (type = 'CSV' skip_header = 0 field_delimiter = ',' record_delimiter = '\n')" -F 'upload=@"./books.csv"'
```

Notice that the `insert_sql` part above specifies the columns (title, author, and date) to match the loaded data.
Expand Down

0 comments on commit 6fc005e

Please sign in to comment.