zenoyang commented on issue #9079:
URL: https://github.com/apache/doris/issues/9079#issuecomment-1169524968
I found that after changing `if` to `case then`, can hit rollup
```sql
select city_id,
count(distinct case WHEN is_intention=1 then device_id end)
from db1.tbl
where dt='2022-04-11'
group by city_id;
-- explain sql: rollup: rollup1
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]