ClickHouse/tests/queries/0_stateless/01925_merge_prewhere_table.sql

14 lines
372 B
MySQL
Raw Normal View History

2021-06-27 21:30:26 +00:00
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);
2021-06-27 21:31:18 +00:00
create table x engine=Merge(currentDatabase(), '^x_(1|2)$') as x_1;
2021-06-27 21:30:26 +00:00
select _table, count() from x group by _table order by _table;
DROP TABLE x_1;
DROP TABLE x_2;
DROP TABLE x;