From 6fc005ed847a511c8d9d93d32c4a7391d4bd274e Mon Sep 17 00:00:00 2001 From: soyeric128 Date: Thu, 12 Jan 2023 22:38:49 -0500 Subject: [PATCH] Update 02-local.md --- docs/doc/12-load-data/02-local.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/doc/12-load-data/02-local.md b/docs/doc/12-load-data/02-local.md index 93022b8d4bbb..fd3e1dc4a038 100644 --- a/docs/doc/12-load-data/02-local.md +++ b/docs/doc/12-load-data/02-local.md @@ -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: @@ -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.