[WIP][SPARK-3098]In some cases, the result of RDD.distinct is inconsistent

- [ ] Performance test
- [X] Test cases