realm-java
realm-java copied to clipboard
Terminal distinct() invalidates all previous distinct(), resulting in unexpected values.
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.
distinct will always create a new RealmResults and won't change the original one since v3.0.0.