fornaix opened a new issue, #20819: URL: https://github.com/apache/doris/issues/20819
### 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 - 1.2.4.3 - 2.0.0-alpha1 ### What's Wrong? The results of orthogonal_bitmap_expr_calculate and orthogonal_bitmap_expr_calculate_count are not as expected in some cases ### What You Expected? returns the correct result ### How to Reproduce? Reproduce: - 1 FE 1 BE - execute sql ```sql -- create table create table tt(tag int, user_id bitmap bitmap_union) aggregate key(tag) distributed by hash(tag) buckets 1 properties ('replication_num' = '1'); -- insert data insert into tt values (1, bitmap_from_array([1,2,3])); insert into tt values (2, bitmap_from_array([3,44])); -- invoke orthogonal bitmap expr udf select orthogonal_bitmap_expr_calculate_count(user_id, tag, '1|2') from tt; -- expect:4;actual:0 select orthogonal_bitmap_expr_calculate_count(user_id, tag, '1&2') from tt; -- expect:1;actual:0 select bitmap_to_array(orthogonal_bitmap_expr_calculate(user_id, tag, '1|2')) from tt; -- expect:[1,2,3,44];actual:[] select bitmap_to_array(orthogonal_bitmap_expr_calculate(user_id, tag, '1&2')) from tt; -- expect:[3];actual:[] ``` ### Anything Else? _No response_ ### 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]
