You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by GitBox <gi...@apache.org> on 2022/06/29 04:37:18 UTC

[GitHub] [doris] zenoyang commented on issue #9079: [Enhancement] Cannot hit rollup even if the `if expr` contains the rollup dimension

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: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org