mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-18 04:12:19 +00:00
Update 02374_combine_multi_if_and_count_if_opt.sql
This commit is contained in:
parent
e1d263c000
commit
dccfdb0d52
@ -4,6 +4,10 @@ create table m (a int) engine Log;
|
||||
|
||||
insert into m values (1);
|
||||
|
||||
explain syntax select sum(multiIf(a = 1, 1, 0)) from m settings optimize_rewrite_sum_if_to_count_if=1;
|
||||
set optimize_rewrite_sum_if_to_count_if=1;
|
||||
|
||||
explain syntax select sum(multiIf(a = 1, 1, 0)) from m;
|
||||
|
||||
set optimize_rewrite_sum_if_to_count_if=0;
|
||||
|
||||
drop table m;
|
||||
|
Loading…
Reference in New Issue
Block a user