realm-java icon indicating copy to clipboard operation
realm-java copied to clipboard

Terminal distinct() invalidates all previous distinct(), resulting in unexpected values.

Open stk1m1 opened this issue 10 years ago • 1 comments

When more than one distinct() are called in query chain, e.g. distinct().equalTo().distinct(), the last distinct() will discard all the effects of previous distinct() as it is designed.

This behavior results in unexpected values in terms of the final objects set.

stk1m1 avatar Feb 15 '16 11:02 stk1m1

distinct will always create a new RealmResults and won't change the original one since v3.0.0.

beeender avatar Mar 27 '17 12:03 beeender