-
Notifications
You must be signed in to change notification settings - Fork 752
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(query): fix copy into table with disable distributed copy into (#โฆ
โฆ16529) * fix(query): fix copy into table with diable distributed copy into * fix(query): fix copy into table with diable distributed copy into
- Loading branch information
Showing
2 changed files
with
30 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
tests/sqllogictests/suites/base/03_common/03_0046_copy_into_from_stage.test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
statement ok | ||
DROP STAGE IF EXISTS stage_t4; | ||
|
||
statement ok | ||
DROP TABLE IF EXISTS t4; | ||
|
||
statement ok | ||
CREATE STAGE stage_t4; | ||
|
||
statement ok | ||
CREATE TABLE t4(str string); | ||
|
||
statement ok | ||
set enable_distributed_copy_into = 0; | ||
|
||
statement ok | ||
copy into @stage_t4 from (SELECT to_string(number) as str from numbers(10)); | ||
|
||
statement ok | ||
COPY INTO t4 from @stage_t4 pattern='.*' FILE_FORMAT = (TYPE = 'parquet') PURGE=true FORCE=true max_files=10000; | ||
|
||
statement ok | ||
DROP STAGE IF EXISTS stage_t4; | ||
|
||
statement ok | ||
DROP TABLE IF EXISTS t4; |