mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-30 19:42:00 +00:00
add test from Christoph
This commit is contained in:
parent
bdf6ab8d45
commit
e45dd36343
@ -2,3 +2,7 @@
|
|||||||
1
|
1
|
||||||
2
|
2
|
||||||
3
|
3
|
||||||
|
0
|
||||||
|
1
|
||||||
|
2
|
||||||
|
3
|
||||||
|
@ -1,12 +1,21 @@
|
|||||||
-- Tags: no-parallel, no-fasttest
|
-- Tags: no-parallel, no-fasttest
|
||||||
-- Tag no-fasttest: Depends on AWS
|
-- Tag no-fasttest: Depends on AWS
|
||||||
|
|
||||||
SET max_threads = 1;
|
|
||||||
SET s3_truncate_on_insert = 1;
|
SET s3_truncate_on_insert = 1;
|
||||||
|
SET s3_skip_empty_files = 0;
|
||||||
|
|
||||||
INSERT INTO FUNCTION s3(s3_conn, filename='dir1/03271_s3_table_function_asterisk_glob/', format=Parquet) SELECT 0 as num;
|
INSERT INTO FUNCTION s3(s3_conn, filename='dir1/03271_s3_table_function_asterisk_glob/', format=Parquet) SELECT 0 as num;
|
||||||
INSERT INTO FUNCTION s3(s3_conn, filename='dir1/03271_s3_table_function_asterisk_glob/file1', format=Parquet) SELECT 1 as num;
|
INSERT INTO FUNCTION s3(s3_conn, filename='dir1/03271_s3_table_function_asterisk_glob/file1', format=Parquet) SELECT 1 as num;
|
||||||
INSERT INTO FUNCTION s3(s3_conn, filename='dir1/03271_s3_table_function_asterisk_glob/file2', format=Parquet) SELECT 2 as num;
|
INSERT INTO FUNCTION s3(s3_conn, filename='dir1/03271_s3_table_function_asterisk_glob/file2', format=Parquet) SELECT 2 as num;
|
||||||
INSERT INTO FUNCTION s3(s3_conn, filename='dir1/03271_s3_table_function_asterisk_glob/file3', format=Parquet) SELECT 3 as num;
|
INSERT INTO FUNCTION s3(s3_conn, filename='dir1/03271_s3_table_function_asterisk_glob/file3', format=Parquet) SELECT 3 as num;
|
||||||
|
|
||||||
SELECT * FROM s3(s3_conn, filename='dir1/03271_s3_table_function_asterisk_glob/*') ORDER BY ALL;
|
SELECT * FROM s3(s3_conn, filename='dir1/03271_s3_table_function_asterisk_glob/*') ORDER BY ALL SETTINGS max_threads = 1;
|
||||||
|
SELECT * FROM s3(s3_conn, filename='dir1/03271_s3_table_function_asterisk_glob/*') ORDER BY ALL SETTINGS max_threads = 4;
|
||||||
|
|
||||||
|
-- Empty "directory" files created implicitly by S3 console:
|
||||||
|
-- https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-folders.html
|
||||||
|
SELECT *
|
||||||
|
FROM s3('https://datasets-documentation.s3.eu-west-3.amazonaws.com/amazon_reviews/*', NOSIGN)
|
||||||
|
LIMIT 1
|
||||||
|
FORMAT Null
|
||||||
|
SETTINGS s3_skip_empty_files = 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user