kangkaisen opened a new issue #2417: Bitmap_union query couldn't hit  rollup 
index
URL: https://github.com/apache/incubator-doris/issues/2417
 
 
   **Describe the bug**
   ```
   |   0:OlapScanNode                                                           
                                |
   |      TABLE: pv_bitmap                                                      
                                |
   |      PREAGGREGATION: OFF. Reason: 
aggExpr.getChild(0)[aggExpr.getChild(0).toSql()] is not Numeric CastExpr |
   |      partitions=1/1
   ```
   **To Reproduce**
   1 
   ```
   CREATE TABLE `pv_bitmap` (
   `dt` int,
   `page` varchar(10),
   `user_id` bitmap bitmap_union
   ) ENGINE=OLAP
   AGGREGATE KEY(`dt`, page)
   DISTRIBUTED BY HASH(`dt`) BUCKETS 2;
   ```
   2
   ```
   ALTER TABLE pv_bitmap ADD ROLLUP  pv (page, user_id);
   ```
   3 load data
   4 query
   ```
   select page, bitmap_count(bitmap_union(user_id)) from pv_bitmap group by 
page;
   ```
   

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to