Github user sameeragarwal commented on the pull request:
https://github.com/apache/spark/pull/10626#issuecomment-169935761
@gatorsmile I pulled your changes and verified that the new intersect
implementation fails even when there is a deterministic sampling operator in
the plan, i.e., something along the lines of the following will now fail:
```scala
val data = sparkContext.parallelize(1 to 600, 1).toDF("id")
assert(data.sample(false, 0.1, 1).intersect(data.sample(false, 0.1,
1)).collect().isEmpty) //FAILS
```
If that's intentional, please let me know if you'd like me to fix the test
or fold the above change as part of your PR. Thanks!
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]