Closed lgbo-ustc closed 6 days ago
For following query
select x, y, count(if(a > 0, b, c)) as n from t group by x, y with cube
It will add an extra projection after expand for pre-calculating if(a>0,b, c).
expand
if(a>0,b, c)
For performance, we should push down the projection before expand
before pushdown
after pushdown
Description
For following query
It will add an extra projection after
expand
for pre-calculatingif(a>0,b, c)
.For performance, we should push down the projection before
expand