You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by "fornaix (via GitHub)" <gi...@apache.org> on 2023/06/14 13:19:31 UTC
[GitHub] [doris] fornaix opened a new issue, #20819: [Bug] incorrect orthogonal bitmap results in some cases
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: commits-unsubscribe@doris.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
[GitHub] [doris] yiguolei closed issue #20819: [Bug] incorrect orthogonal bitmap results in some cases
Posted by "yiguolei (via GitHub)" <gi...@apache.org>.
yiguolei closed issue #20819: [Bug] incorrect orthogonal bitmap results in some cases
URL: https://github.com/apache/doris/issues/20819
--
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-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org