924060929 opened a new issue #5424:
URL: https://github.com/apache/incubator-doris/issues/5424


   **Describe the bug**
   
   hyper log log aggreate 160 items will terminate `backend`
   
   **To Reproduce**
   Steps to reproduce the behavior:
   1. create a test table
   ```sql
   CREATE TABLE `numbers` (
     `id` int(11) NULL COMMENT ""
   ) ENGINE=OLAP
   DISTRIBUTED BY HASH(`id`)
   PROPERTIES (
     "replication_num" = "1"
   );
   ```
   2. insert into table numbers from 0 until 1000
   3. execute query
   ```sql
   select hll_union_agg(cast(hll_hash(id) as hll)) from numbers where id < 160;
   ```
   4. See error: `F0225 19:45:01.553544 227868 hll.cpp:167] Check failed: 
_hash_set.size() < HLL_EXPLICLIT_INT64_NUM Number of explicit elements(160) 
should be less or equal than 160`
   
   **Expected behavior**
   `backend` process exit
   
   **Screenshots**
   According to the error message, we should modify to `DCHECK(_hash_set.size() 
<= HLL_EXPLICLIT_INT64_NUM)`
   
   
   
![image](https://user-images.githubusercontent.com/8806055/109152956-2772a280-77a7-11eb-9cfb-7e3285f345b8.png)
   
   
   **Desktop (please complete the following information):**
   None
   
   **Smartphone (please complete the following information):**
   None
   
   **Additional context**
   None
   


----------------------------------------------------------------
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:
us...@infra.apache.org



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

Reply via email to