-- { echo } drop table if exists test_02480_write; drop table if exists test_02480_write2; create table test_02480_write (a UInt64, b String) engine = S3(s3_conn, filename='test_02480_{_partition_id}', format=Parquet) partition by a; set s3_truncate_on_insert=1; insert into test_02480_write values (1, 'a'), (22, 'b'), (333, 'c'); select a, b from s3(s3_conn, filename='test_02480_*', format=Parquet) order by a; 1 a 22 b 333 c select a, b from s3(s3_conn, filename='test_02480_?', format=Parquet) order by a; 1 a select a, b from s3(s3_conn, filename='test_02480_??', format=Parquet) order by a; 22 b select a, b from s3(s3_conn, filename='test_02480_?*?', format=Parquet) order by a; 22 b 333 c select a, b from s3(s3_conn, filename='test_02480_{1,333}', format=Parquet) order by a; 1 a 333 c select a, b from s3(s3_conn, filename='test_02480_{1..333}', format=Parquet) order by a; 1 a 22 b 333 c create table test_02480_write2 (a UInt64, b String) engine = S3(s3_conn, filename='prefix/test_02480_{_partition_id}', format=Parquet) partition by a; set s3_truncate_on_insert=1; insert into test_02480_write2 values (4, 'd'), (55, 'f'), (666, 'g'); select a, b from s3(s3_conn, filename='*/test_02480_*', format=Parquet) order by a; 4 d 55 f 666 g select a, b from s3(s3_conn, filename='*/test_02480_?', format=Parquet) order by a; 4 d select a, b from s3(s3_conn, filename='prefix/test_02480_??', format=Parquet) order by a; 55 f select a, b from s3(s3_conn, filename='prefi?/test_02480_*', format=Parquet) order by a; 4 d 55 f 666 g select a, b from s3(s3_conn, filename='p?*/test_02480_{56..666}', format=Parquet) order by a; 666 g drop table test_02480_write; drop table test_02480_write2;