GitHub user rxin opened a pull request:

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

    [SPARK-2210] boolean cast on boolean value should be removed.

    ```
    explain select cast(cast(key=0 as boolean) as boolean) aaa from src
    ```
    should be
    ```
    [Physical execution plan:]
    [Project [(key#10:0 = 0) AS aaa#7]]
    [ HiveTableScan [key#10], (MetastoreRelation default, src, None), None]
    ```
    
    However, it is currently
    ```
    [Physical execution plan:]
    [Project [NOT((key#10=0) = 0) AS aaa#7]]
    [ HiveTableScan [key#10], (MetastoreRelation default, src, None), None]
    ```

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

    $ git pull https://github.com/rxin/spark booleancast

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

    https://github.com/apache/spark/pull/1144.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 #1144
    
----
commit c4e543d9802641e4f7ddb2cc2ae08c05962a5b44
Author: Reynold Xin <r...@apache.org>
Date:   2014-06-20T05:35:23Z

    [SPARK-2210] boolean cast on boolean value should be removed.

----


---
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 infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to