File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
tests/suites/1_stateful/05_formats/05_02_csv Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 3
3
CURDIR=$( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd)
4
4
. " $CURDIR " /../../../../shell_env.sh
5
5
6
+
7
+ # Should be <root>/tests/data/
8
+ DATADIR=$( realpath $CURDIR /../../../data/)
9
+
6
10
echo " drop table if exists test_csv" | $MYSQL_CLIENT_CONNECT
7
11
echo " drop table if exists test_csv2" | $MYSQL_CLIENT_CONNECT
8
12
@@ -46,11 +50,11 @@ echo "select * from test_csv" | $MYSQL_CLIENT_CONNECT
46
50
echo " truncate table test_csv" | $MYSQL_CLIENT_CONNECT
47
51
48
52
aws --endpoint-url http://127.0.0.1:9900/ s3 cp /tmp/escape_slash2.csv s3://testbucket/admin/data/csv/escape_slash2.csv > /dev/null 2>&1
49
- echo " copy into test_csv from 's3 ://testbucket/admin/data/csv/ escape_slash2.csv' connection=(aws_key_id='minioadmin' aws_secret_key='minioadmin' endpoint_url='http://127.0.0.1:9900/') FILE_FORMAT = (type = 'CSV' escape='\\ \')" | $MYSQL_CLIENT_CONNECT
53
+ echo " copy into test_csv from 'fs :///tmp/ escape_slash2.csv' FILE_FORMAT = (type = 'CSV' escape='\\\\\ \\\ ')" | $MYSQL_CLIENT_CONNECT
50
54
echo " select * from test_csv" | $MYSQL_CLIENT_CONNECT
51
55
52
56
aws --endpoint-url http://127.0.0.1:9900/ s3 cp /tmp/escape_slash3.csv s3://testbucket/admin/data/csv/escape_slash3.csv > /dev/null 2>&1
53
- echo " copy into test_csv2 from 's3 ://testbucket/admin/data/csv/ escape_slash3.csv' connection=(aws_key_id='minioadmin' aws_secret_key='minioadmin' endpoint_url='http://127.0.0.1:9900/') FILE_FORMAT = (type = 'CSV' escape='\\ \' skip_header=1)" | $MYSQL_CLIENT_CONNECT
57
+ echo " copy into test_csv2 from 'fs :///tmp/ escape_slash3.csv' FILE_FORMAT = (type = 'CSV' escape='\\\\\ \\\ ' skip_header=1)" | $MYSQL_CLIENT_CONNECT
54
58
echo " select * from test_csv2" | $MYSQL_CLIENT_CONNECT
55
59
56
60
echo " drop table if exists test_csv" | $MYSQL_CLIENT_CONNECT
You can’t perform that action at this time.
0 commit comments