jipeli opened a new issue, #26405: URL: https://github.com/apache/doris/issues/26405
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/doris/issues?q=is%3Aissue) and found no similar issues. ### Version 2.0.1 ### What's Wrong? Create table : `create table metric_table ( datekey int, hour int, device_id bitmap BITMAP_UNION ) aggregate key (datekey, hour) distributed by hash(datekey, hour) buckets 1 properties( "replication_num" = "1" );` Insert data : `insert into metric_table values (20200622, 1, to_bitmap(243)), (20200622, 2, bitmap_from_array([1,2,3,4,5,434543])), (20200622, 3, to_bitmap(287667876573));` Query data : `select not bitmap_contains(device_id,1) from metric_table where hour=1;` <img width="818" alt="企业微信截图_50263f79-c04f-458b-b3a1-455b29733611" src="https://github.com/apache/doris/assets/54889677/cd2270de-9f38-43b7-85a9-b926d674f349"> `with t as (select true as `a`) select * from t where `a` and not bitmap_contains ((select bitmap_union(device_id) from metric_table where hour=1),1);` <img width="1446" alt="企业微信截图_6d9cc914-dfcf-4b3d-bfcc-2789477ef411" src="https://github.com/apache/doris/assets/54889677/22e60ce8-c9d0-48d8-88d8-a9fe90ab5dd6"> the result should not be empty ### What You Expected? when input not in the subquery bitmap , the not bitmap_contains() return true ### How to Reproduce? _No response_ ### Anything Else? _No response_ ### Are you willing to submit PR? - [ ] 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: commits-unsubscr...@doris.apache.org.apache.org 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