Skip to content

Commit d051aca

Browse files
committed
test(stage): basic test for select from stage.
1 parent 1858871 commit d051aca

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
1 2 3
2+
4 5 6
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/usr/bin/env bash
2+
3+
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
4+
. "$CURDIR"/../../../shell_env.sh
5+
6+
echo "drop stage if exists s1;" | $MYSQL_CLIENT_CONNECT
7+
echo "create stage s1;" | $MYSQL_CLIENT_CONNECT
8+
9+
echo "drop table if exists t1;" | $MYSQL_CLIENT_CONNECT
10+
echo "CREATE TABLE t1 (id INT, name VARCHAR, age INT);" | $MYSQL_CLIENT_CONNECT
11+
12+
echo "insert into t1 (id,name,age) values(1,'2',3), (4, '5', 6);" | $MYSQL_CLIENT_CONNECT
13+
echo " copy into @s1 from t1 FILE_FORMAT = (type = 'PARQUET');" | $MYSQL_CLIENT_CONNECT
14+
15+
echo "select * from @s1;" | $MYSQL_CLIENT_CONNECT

0 commit comments

Comments
 (0)