GitHub user mgaido91 opened a pull request:
https://github.com/apache/spark/pull/21529
[SPARK-24495][SQL] EnsureRequirement returns wrong plan when reordering
equal keys
## What changes were proposed in this pull request?
`EnsureRequirement` in its `reorder` method currently assumes that the same
key appears only once in the join condition. This of course might not be the
case, and when it is not satisfied, it returns a wrong plan which produces a
wrong result of the query.
## How was this patch tested?
added UT
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/mgaido91/spark SPARK-24495
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/21529.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #21529
----
commit 06858cd5a7e1b11cd5fd1edb206296d75550a8d4
Author: Marco Gaido <marcogaido91@...>
Date: 2018-06-11T17:59:19Z
[SPARK-24495][SQL] EnsureRequirement returns worng plan when reordering
equal keys
----
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]