Nizar Hejazi
05/24/2022, 9:00 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
Latest nightly build commit: 0.11.0-SNAPSHOT-438c53b-20220520
Previous nightly build commit: 0.11.0-SNAPSHOT-3403619-20220507Jackie
05/24/2022, 9:04 PMselect count(distinct company), $segmentName from role_with_company where company = '6269223774083d800011fd95' group by $segmentName limit 1000000
Nizar Hejazi
05/24/2022, 9:05 PMselect distinct ($segmentName), company from role_with_company limit 1000000
Result:Nizar Hejazi
05/24/2022, 9:06 PMJackie
05/24/2022, 9:08 PMNizar Hejazi
05/24/2022, 10:00 PMNizar Hejazi
05/24/2022, 10:48 PM