dinggege1024 opened a new issue, #19297:
URL: https://github.com/apache/doris/issues/19297

   ### Search before asking
   
   - [X] I had searched in the 
[issues](https://github.com/apache/doris/issues?q=is%3Aissue) and found no 
similar issues.
   
   
   ### Description
   
   I need bitmap_distinct for data handling.
   
   My requirement is to use the features of Bitmap itself to deduplicate 
columns and obtain the unique column values.
   
   Current situation(Reasons for dissatisfaction):
   ```hiveql
           SELECT
               dt
               ,bitmap_to_string(bitmap_union(to_bitmap(user_id)))
           FROM
               mytable
           GROUP BY
               dt
   ``` 
   it return one column for user_id
   
![image](https://user-images.githubusercontent.com/109070189/236370480-76d22ff6-37f7-4ab1-93e1-eb121b143ab8.png)
   
   Expected:
   ```hiveql
           SELECT
               dt
               ,bitmap_distinct(to_bitmap(user_id))
           FROM
               mytable
           GROUP BY
               dt
   ``` 
   
![image](https://user-images.githubusercontent.com/109070189/236370769-5f8c0e30-2036-4e33-bb24-ab0f0079f071.png)
   
   ### Solution
   
    Doris Java UDF
   
   ### Are you willing to submit PR?
   
   - [X] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


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

Reply via email to