Nizar Hejazi
05/24/2022, 4:54 PMselect distinct (company) from role_with_company limit 1000000 -- answer: 51
Queries w/ less than or greater than predicates returns always the correct results:
select count(distinct company) from role_with_company where company < '6269223774083d800011fd95' limit 1000000 -- answer: 36
select count(distinct company) from role_with_company where company > '6269223774083d800011fd95' limit 1000000 -- answer: 14
On the other hand, equality predicates when the segment is in CONSUMING state does not return the correct results:
select count(distinct company) from role_with_company where company = '6269223774083d800011fd95' limit 1000000 -- answer: 0, when segment is in CONSUMING state
When the segment is COMMITTED, the query returns the correct results:
select count(distinct company) from role_with_company where company = '6269223774083d800011fd95' limit 1000000 -- answer: 1, when segment is COMMITTED
Anyone aware of a change in behaviour that was introduced recently?
@Richard Startin @Jackie