Update 02374_combine_multi_if_and_count_if_opt.sql

This commit is contained in:
Denny Crane 2022-09-15 16:25:15 -03:00 committed by GitHub
parent e1d263c000
commit dccfdb0d52
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,6 +4,10 @@ create table m (a int) engine Log;
insert into m values (1); 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; drop table m;