ClickHouse/tests/queries/0_stateless/01925_merge_prewhere_table.sql
2021-06-28 00:31:18 +03:00

14 lines
372 B
SQL

DROP TABLE IF EXISTS x_1;
DROP TABLE IF EXISTS x_2;
DROP TABLE IF EXISTS x;
create table x_1 engine=Log as select * from numbers(10);
create table x_2 engine=Log as select * from numbers(10);
create table x engine=Merge(currentDatabase(), '^x_(1|2)$') as x_1;
select _table, count() from x group by _table order by _table;
DROP TABLE x_1;
DROP TABLE x_2;
DROP TABLE x;