test for fixed issue (#15166)

This commit is contained in:
Artem Zuikov 2020-09-23 13:17:31 +03:00 committed by GitHub
parent 25e9d11e2f
commit 626c2dad9f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,21 @@
drop table if exists t1;
drop table if exists t2;
create table t1
(
col UInt64,
x UInt64 MATERIALIZED col + 1
) Engine = MergeTree order by tuple();
create table t2
(
x UInt64
) Engine = MergeTree order by tuple();
insert into t1 values (1),(2),(3),(4),(5);
insert into t2 values (1),(2),(3),(4),(5);
SELECT COUNT() FROM t1 INNER JOIN t2 USING x;
drop table t1;
drop table t2;