Skip to content

Commit 8cea0d2

Browse files
committed
modify the remaining tests
1 parent 97cf0eb commit 8cea0d2

File tree

4 files changed

+4
-8
lines changed

4 files changed

+4
-8
lines changed

tests/suites/1_stateful/01_load_v2/01_0004_streaming_variant_load.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,7 @@ if [ $? -ne 0 ]; then
3232
fi
3333

3434
# load csv
35-
# todo(ariesdevil): change to new syntax when format_quote landing
36-
curl -H "insert_sql:insert into variant_test format Csv" -H "format_skip_header:0" -H 'format_field_delimiter: ,' -H 'format_record_delimiter: \n' -H "format_quote: \'" -F "upload=@/tmp/json_sample1.csv" -u root: -XPUT "http://localhost:${QUERY_HTTP_HANDLER_PORT}/v1/streaming_load" > /dev/null 2>&1
35+
curl -H "insert_sql:insert into variant_test file_format = (type = 'CSV' skip_header = 0 field_delimiter = ',' record_delimiter = '\n' quote = '\'')" -F "upload=@/tmp/json_sample1.csv" -u root: -XPUT "http://localhost:${QUERY_HTTP_HANDLER_PORT}/v1/streaming_load" > /dev/null 2>&1
3736
curl -H "insert_sql:insert into variant_test format Csv" -H "format_skip_header:0" -H 'format_field_delimiter: |' -H 'format_record_delimiter: \n' -H "format_quote: \'" -F "upload=@/tmp/json_sample2.csv" -u root: -XPUT "http://localhost:${QUERY_HTTP_HANDLER_PORT}/v1/streaming_load" > /dev/null 2>&1
3837
echo "select * from variant_test order by Id asc;" | $MYSQL_CLIENT_CONNECT
3938

tests/suites/1_stateful/05_formats/05_03_xml/05_03_01_xml_v1.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ curl -sH "insert_sql:insert into test_xml file_format = (type = 'XML')" -F "uplo
6868
echo "select * from test_xml" | $MYSQL_CLIENT_CONNECT
6969
echo "truncate table test_xml" | $MYSQL_CLIENT_CONNECT
7070

71-
# todo(ariesdevil): wait for row_tag landing
72-
curl -sH "insert_sql:insert into test_xml format XML" -F "upload=@/tmp/simple_v2.xml" -H "row_tag:'databend'" -u root: -XPUT "http://localhost:${QUERY_HTTP_HANDLER_PORT}/v1/streaming_load" | grep -c "SUCCESS"
71+
curl -sH "insert_sql:insert into test_xml file_format = (type = 'XML' row_tag = 'databend')" -F "upload=@/tmp/simple_v2.xml" -u root: -XPUT "http://localhost:${QUERY_HTTP_HANDLER_PORT}/v1/streaming_load" | grep -c "SUCCESS"
7372
echo "select * from test_xml" | $MYSQL_CLIENT_CONNECT
7473
echo "truncate table test_xml" | $MYSQL_CLIENT_CONNECT

tests/suites/1_stateful/05_formats/05_03_xml/05_03_02_xml_v2.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ curl -sH "insert_sql:insert into test_xml file_format = (type = 'XML')" -F "uplo
3636
echo "select * from test_xml" | $MYSQL_CLIENT_CONNECT
3737
echo "truncate table test_xml" | $MYSQL_CLIENT_CONNECT
3838

39-
# todo(ariesdevil): wait for row_tag landing
40-
curl -sH "insert_sql:insert into test_xml format XML" -F "upload=@/tmp/simple_v3.xml" -H "row_tag:'databend'" -u root: -XPUT "http://localhost:${QUERY_HTTP_HANDLER_PORT}/v1/streaming_load" | grep -c "SUCCESS"
39+
curl -sH "insert_sql:insert into test_xml file_format = (type = 'XML' row_tag = 'databend')" -F "upload=@/tmp/simple_v3.xml" -u root: -XPUT "http://localhost:${QUERY_HTTP_HANDLER_PORT}/v1/streaming_load" | grep -c "SUCCESS"
4140
echo "select * from test_xml" | $MYSQL_CLIENT_CONNECT
4241
echo "truncate table test_xml" | $MYSQL_CLIENT_CONNECT

tests/suites/1_stateful/05_formats/05_03_xml/05_03_03_xml_v3.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ curl -sH "insert_sql:insert into test_xml file_format = (type = 'XML')" -F "uplo
5858
echo "select * from test_xml" | $MYSQL_CLIENT_CONNECT
5959
echo "truncate table test_xml" | $MYSQL_CLIENT_CONNECT
6060

61-
# todo(ariesdevil): wait for row_tag landing
62-
curl -sH "insert_sql:insert into test_xml format XML" -F "upload=@/tmp/simple_v4.xml" -H "row_tag:'databend'" -u root: -XPUT "http://localhost:${QUERY_HTTP_HANDLER_PORT}/v1/streaming_load" | grep -c "SUCCESS"
61+
curl -sH "insert_sql:insert into test_xml file_format = (type = 'XML' row_tag = 'databend')" -F "upload=@/tmp/simple_v4.xml" -u root: -XPUT "http://localhost:${QUERY_HTTP_HANDLER_PORT}/v1/streaming_load" | grep -c "SUCCESS"
6362
echo "select * from test_xml" | $MYSQL_CLIENT_CONNECT
6463
echo "truncate table test_xml" | $MYSQL_CLIENT_CONNECT

0 commit comments

Comments
 (0)