mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-25 09:02:00 +00:00
Disable part with predicate optimization for now
This commit is contained in:
parent
bdc7614c77
commit
3281e91d07
@ -1,2 +1 @@
|
||||
CAT 2
|
||||
CAT 2
|
||||
|
@ -21,20 +21,4 @@ group by x.b
|
||||
having ANIMAL >= 0) ANIMAL
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user