GitHub user mgaido91 opened a pull request:
https://github.com/apache/spark/pull/21449
[SPARK-24385][SQL] Resolve self-join condition ambiguity for all
BinaryComparisons
## What changes were proposed in this pull request?
In `Dataset.join` we have a small hack for resolving ambiguity in the
column name for self-joins. The current code supports only `EqualTo`, but we
may have other conditions involving columns on self joins: in general any
`BinaryComparison` can be specified and faces the same issue.
The PR extends the fix to all `BinaryComparison`s.
## 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-24385
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/21449.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 #21449
----
commit 92cb513416c5dd0e9fa690c25cfae0565471a5e1
Author: Marco Gaido <marcogaido91@...>
Date: 2018-05-29T12:34:57Z
[SPARK-24385][SQL] Resolve self-join condition ambiguity for all
BinaryComparisons
----
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]