From cf0fd481d33c01862d9ab1af164b415d64e0ee4a Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Thu, 8 Aug 2019 18:51:33 +0300 Subject: [PATCH] Added a test --- ...1_no_virtual_columns_in_system_columns.reference | 1 + .../00981_no_virtual_columns_in_system_columns.sql | 13 +++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 dbms/tests/queries/0_stateless/00981_no_virtual_columns_in_system_columns.reference create mode 100644 dbms/tests/queries/0_stateless/00981_no_virtual_columns_in_system_columns.sql diff --git a/dbms/tests/queries/0_stateless/00981_no_virtual_columns_in_system_columns.reference b/dbms/tests/queries/0_stateless/00981_no_virtual_columns_in_system_columns.reference new file mode 100644 index 00000000000..a7ec77dc030 --- /dev/null +++ b/dbms/tests/queries/0_stateless/00981_no_virtual_columns_in_system_columns.reference @@ -0,0 +1 @@ +default merge_ab x UInt8 0 0 0 0 0 0 0 diff --git a/dbms/tests/queries/0_stateless/00981_no_virtual_columns_in_system_columns.sql b/dbms/tests/queries/0_stateless/00981_no_virtual_columns_in_system_columns.sql new file mode 100644 index 00000000000..476377b4ddf --- /dev/null +++ b/dbms/tests/queries/0_stateless/00981_no_virtual_columns_in_system_columns.sql @@ -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;