mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 23:21:59 +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
|
||||
|
@ -13,23 +13,7 @@ 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;
|
||||
|
||||
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
|
||||
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'
|
||||
|
Loading…
Reference in New Issue
Block a user