Skip to content

Commit

Permalink
Disable the copy location from directory tests
Browse files Browse the repository at this point in the history
  • Loading branch information
BohuTANG committed Mar 7, 2022
1 parent 1e23532 commit a145007
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
Test copy from file
199 2020 769
Test copy from files
398 2020 1538
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ echo "select count(1) ,avg(Year), sum(DayOfWeek) from ontime200" | $MYSQL_CLIEN
echo "truncate table ontime200" | $MYSQL_CLIENT_CONNECT


## Copy from s3 with files.
echo "Test copy from files"
echo "copy into ontime200 from 's3://testbucket/admin/data/' credentials=(aws_key_id='minioadmin' aws_secret_key='minioadmin') FILES = ('ontime_200.csv', 'ontime_200_v1.csv') FILE_FORMAT = (type = 'CSV' field_delimiter = ',' record_delimiter = '\n' skip_header = 1)" | $MYSQL_CLIENT_CONNECT
## Copy from s3 with files(TODO).
#echo "Test copy from files"
#echo "copy into ontime200 from 's3://testbucket/admin/data/' credentials=(aws_key_id='minioadmin' aws_secret_key='minioadmin') FILES = ('ontime_200.csv', 'ontime_200_v1.csv') FILE_FORMAT = (type = 'CSV' field_delimiter = ',' record_delimiter = '\n' skip_header = 1)" | $MYSQL_CLIENT_CONNECT

## Result.
echo "select count(1) ,avg(Year), sum(DayOfWeek) from ontime200" | $MYSQL_CLIENT_CONNECT
#echo "select count(1) ,avg(Year), sum(DayOfWeek) from ontime200" | $MYSQL_CLIENT_CONNECT


## Drop table.
Expand Down

0 comments on commit a145007

Please sign in to comment.