Closed r-s-c137 closed 2 years ago
Thanks for report. The following also can reproduce this problem
postgres=# SELECT
'{100373,1829130,1861002,1975442,2353213,2456403}'::roaringbitmap & '{2353213}'::roaringbitmap;
?column?
----------
{}
(1 row)
The mistake comes from keyscardsAdvanceUntil(), affected functions include at least rb_and,rb_and_cardinality,rb_andnot,rb_andnot_cardinality,rb_contains,rb_containedby and rb_intersect
The result should be '{2353213}'