mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-03 13:02:00 +00:00
test for fixed issue (#15166)
This commit is contained in:
parent
25e9d11e2f
commit
626c2dad9f
@ -0,0 +1 @@
|
||||
4
|
21
tests/queries/0_stateless/01481_join_with_materialized.sql
Normal file
21
tests/queries/0_stateless/01481_join_with_materialized.sql
Normal 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;
|
Loading…
Reference in New Issue
Block a user