spaces-X opened a new issue #3769:
URL: https://github.com/apache/incubator-doris/issues/3769


   **Describe the bug**
   Bitmap and Hll type can not be used with incorrect aggregate functions, 
which will cause to BEs crush.
   Add some logical checks in FE's ColumnDef#analyze to avoid creating tables 
or changing schemas incorrectly.
   - Keys never be bitmap or hll type
   - Values with bitmap or hll type have to be associated with bitmap_union or 
hll_union
   
   *To Reproduce**
   Bitmap or hll type without correct aggregate type bit_union or hll_union 
   Create Table sql likes the following:
   Create Table: CREATE TABLE `xxx` (
    `c_date` date NOT NULL COMMENT "date",
    `user_id` **bitmap NULL** DEFAULT " " COMMENT "userid",
    ...
   ) ENGINE=OLAP
   DUPLICATE KEY(`xx`)
   


----------------------------------------------------------------
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