Added a test

This commit is contained in:
Alexey Milovidov 2019-08-08 18:51:33 +03:00
parent e7c7694377
commit cf0fd481d3
2 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1 @@
default merge_ab x UInt8 0 0 0 0 0 0 0

View File

@ -0,0 +1,13 @@
DROP TABLE IF EXISTS merge_a;
DROP TABLE IF EXISTS merge_b;
DROP TABLE IF EXISTS merge_ab;
CREATE TABLE merge_a (x UInt8) ENGINE = StripeLog;
CREATE TABLE merge_b (x UInt8) ENGINE = StripeLog;
CREATE TABLE merge_ab AS merge(currentDatabase(), '^merge_[ab]$');
SELECT * FROM system.columns WHERE database = currentDatabase() AND table = 'merge_ab';
DROP TABLE merge_a;
DROP TABLE merge_b;
DROP TABLE merge_ab;