GitHub user DoingDone9 opened a pull request:

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

    [SPARK-7225][SQL] CombineLimits optimizer does not work

    SQL 
    ```
    select key from (select key from src limit 100) t2 limit 10
    ```
    Optimized Logical Plan before modifying
    ```
    == Optimized Logical Plan ==
    Limit 10
    Limit 100
    Project key#3
    MetastoreRelation default, src, None
    ```
    Optimized Logical Plan after modifying
    ```
    == Optimized Logical Plan ==
    Limit 10
     Project [key#1]
      MetastoreRelation default, src, None
    ```

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

    $ git pull https://github.com/DoingDone9/spark limitOptimizer

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

    https://github.com/apache/spark/pull/5770.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 #5770
    
----

----


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