mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 08:32:02 +00:00
Added test. [#CLICKHOUSE-3965]
This commit is contained in:
parent
ee89ddb445
commit
28bef7b7aa
@ -0,0 +1 @@
|
||||
1 3 6
|
@ -0,0 +1,5 @@
|
||||
drop table if exists test.prewhere_alias;
|
||||
create table test.prewhere_alias (a Int32, b Int32, c alias a + b) engine = MergeTree order by b;
|
||||
insert into test.prewhere_alias values(1, 1);
|
||||
select a, c + toInt32(1), (c + toInt32(1)) * 2 from test.prewhere_alias prewhere (c + toInt32(1)) * 2 = 6;
|
||||
drop table test.prewhere_alias;
|
Loading…
Reference in New Issue
Block a user