GitHub user adrian-wang opened a pull request:

    https://github.com/apache/spark/pull/5643

    [SPARK-7026] [SQL] fix left semi join with equi key and non-equi condition

    When the `condition` extracted by `ExtractEquiJoinKeys` contain join 
Predicate for left semi join, we can not plan it as semiJoin. Such as
    
        SELECT * FROM testData2 x
        LEFT SEMI JOIN testData2 y 
        ON x.b = y.b
        AND x.a >= y.a + 2
    Condition `x.a >= y.a + 2` can not evaluate on table `x`, so it throw errors

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/adrian-wang/spark spark7026

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/5643.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 #5643
    
----
commit 6eb62d24984862674641567cff9e5c1c06d5b50b
Author: Daoyuan Wang <[email protected]>
Date:   2015-04-23T02:32:38Z

    fix left semi join with equi key and non-equi condition

----


---
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]

Reply via email to