Disable part with predicate optimization for now

This commit is contained in:
Ivan Lezhankin 2019-03-14 17:59:45 +03:00
parent bdc7614c77
commit 3281e91d07
2 changed files with 1 additions and 18 deletions

View File

@ -21,20 +21,4 @@ group by x.b
having ANIMAL >= 0) ANIMAL having ANIMAL >= 0) ANIMAL
where ANIMAL.ANIMAL >= 0; where ANIMAL.ANIMAL >= 0;
set enable_optimize_predicate_expression = 1;
select * from (
select x.b x, count(distinct x.c) ANIMAL
from (
select a.ANIMAL a, 'CAT' b, c.ANIMAL c, d.ANIMAL d
from ANIMAL a join ANIMAL b on a.ANIMAL = b.ANIMAL
left outer join ANIMAL c on (b.ANIMAL = c.ANIMAL)
right outer join (select * from ANIMAL union all select * from ANIMAL
union all select * from ANIMAL) d on (a.ANIMAL = d.ANIMAL)
where d.ANIMAL <> 'CAT' and c.ANIMAL <>'DOG' and b.ANIMAL <> 'FISH') as x
where x.b >= 'CAT'
group by x.b
having ANIMAL >= 0) ANIMAL
where ANIMAL.ANIMAL >= 0;
DROP TABLE ANIMAL; DROP TABLE ANIMAL;