GitHub user gatorsmile opened a pull request:

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

    [SPARK-13225] [SQL] Support Intersect All/Distinct [WIP]

    In the SQL2003 Syntax, INTERSECT supports both ALL and DISTINCT
    ```
    <SELECT statement1>
    INTERSECT [ALL | DISTINCT]
    <SELECT statement2>
    ```
    
    This PR is to support both. 
       - [x] Enable both optional key words `ALL` and `DISTINCT` when parsing 
`INTERSECT` in SQL Parser;
       - [x] Add a new option `INTERSECT ALL `. It avoids adding extra 
`DISTINCT` above `Left-semi JOIN` after conversion from Intersect to `Left-semi 
JOIN`. 
       - [ ] Add the corresponding APIs of Dataframe and Dataset.

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

    $ git pull https://github.com/gatorsmile/spark intersectDistinct

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

    https://github.com/apache/spark/pull/11106.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 #11106
    
----
commit 95afce5f02f86c1aa3cf22f81c79d8d9e46c1e0a
Author: gatorsmile <[email protected]>
Date:   2016-02-07T00:52:48Z

    "intersect all"

----


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