File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ echo "truncate table wrong_csv" | $MYSQL_CLIENT_CONNECT
5151
5252WRONG_CSV=" COPY INTO wrong_csv FROM 'fs://${DATADIR} /wrong_sample.csv' FILE_FORMAT = (type = CSV field_delimiter = ',' record_delimiter = '\n' skip_header = 0) ON_ERROR=abort_2"
5353
54- echo " $WRONG_CSV " | $MYSQL_CLIENT_CONNECT 2>&1 | grep -c " bad field end "
54+ echo " $WRONG_CSV " | $MYSQL_CLIENT_CONNECT 2>&1 | grep -c " fail to decode column "
5555echo " select count(1) from wrong_csv" | $MYSQL_CLIENT_CONNECT
5656echo " truncate table wrong_csv" | $MYSQL_CLIENT_CONNECT
5757
Original file line number Diff line number Diff line change 4040curl -H " insert_sql:insert into test_csv file_format = (type = CSV)" -F " upload=@/tmp/whitespace.csv" -u root: -XPUT " http://localhost:${QUERY_HTTP_HANDLER_PORT} /v1/streaming_load" > /dev/null 2>&1
4141echo " select * from test_csv" | $MYSQL_CLIENT_CONNECT
4242
43- curl -s -H " insert_sql:insert into test_csv_number file_format = (type = CSV)" -F " upload=@/tmp/whitespace_number1.csv" -u root: -XPUT " http://localhost:${QUERY_HTTP_HANDLER_PORT} /v1/streaming_load" | grep -c " bad field "
43+ curl -s -H " insert_sql:insert into test_csv_number file_format = (type = CSV)" -F " upload=@/tmp/whitespace_number1.csv" -u root: -XPUT " http://localhost:${QUERY_HTTP_HANDLER_PORT} /v1/streaming_load" | grep -c " fail to decode column "
4444curl -s -H " insert_sql:insert into test_csv_number file_format = (type = CSV)" -F " upload=@/tmp/whitespace_number2.csv" -u root: -XPUT " http://localhost:${QUERY_HTTP_HANDLER_PORT} /v1/streaming_load" | grep -c " bad field"
4545
4646echo " drop table if exists test_csv" | $MYSQL_CLIENT_CONNECT
You can’t perform that action at this time.
0 commit comments