Skip to content

Commit 4406b44

Browse files
committed
test(stage): test select from external stage.
1 parent b0f4955 commit 4406b44

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

tests/suites/0_stateless/20+_others/20_0011_select_stage.result

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,6 @@
44
--- uri
55
1 2 3
66
4 5 6
7+
--- external stage
8+
1 2 3
9+
4 5 6

tests/suites/0_stateless/20+_others/20_0011_select_stage.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,10 @@ rm -rf ${DATADIR_PATH}
1919
DATADIR="fs://$DATADIR_PATH/"
2020
echo "copy into '${DATADIR}' from t1 FILE_FORMAT = (type = 'PARQUET');" | $MYSQL_CLIENT_CONNECT
2121
echo "select * from '${DATADIR}';" | $MYSQL_CLIENT_CONNECT
22-
rm -rf ${DATADIR_PATH}
22+
23+
echo '--- external stage'
24+
echo "drop stage if exists s2;" | $MYSQL_CLIENT_CONNECT
25+
echo "create stage s2 url = '${DATADIR}';" | $MYSQL_CLIENT_CONNECT
26+
echo "select * from @s2;" | $MYSQL_CLIENT_CONNECT
27+
28+
rm -rf ${DATADIR_PATH}

0 commit comments

Comments
 (0)