GitHub user rxin opened a pull request:

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

    [SPARK-12768][SQL] Remove CaseKeyWhen expression

    This patch removes CaseKeyWhen expression and replaces it with a factory 
method that generates the equivalent CaseWhen. This reduces the amount of code 
we'd need to maintain in the future for both code generation and optimizer.
    
    Note that we introduced CaseKeyWhen to avoid duplicate evaluations of the 
key. This is no longer a problem because we now have common subexpression 
elimination.


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

    $ git pull https://github.com/rxin/spark SPARK-12768

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

    https://github.com/apache/spark/pull/10722.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 #10722
    
----
commit 98a3b038dcd8de00502e7192e0bb6ebe13c4b338
Author: Reynold Xin <[email protected]>
Date:   2016-01-12T03:03:32Z

    [SPARK-12762][SQL] Add unit test for simplifying if expression.

commit 7ba85c21e207b3ff0bfc8356a888f2e395a1f139
Author: Reynold Xin <[email protected]>
Date:   2016-01-12T03:04:54Z

    Unit test.

commit e7c8475c26dad87d5785f0b0c0b5b8415fdf5e40
Author: Reynold Xin <[email protected]>
Date:   2016-01-12T05:06:48Z

    Fix import style.

commit 5c03a76a0267fb2f63954aa53898a73ea2af8f53
Author: Reynold Xin <[email protected]>
Date:   2016-01-12T06:59:57Z

    Fix CombiningLimitsSuite

commit d8a08edb669c17c99a8212fecc7d30ae6b42a172
Author: Reynold Xin <[email protected]>
Date:   2016-01-12T07:44:37Z

    Revert logDebug

commit 6be7b956835010248d48f551d469a176f5a946e1
Author: Reynold Xin <[email protected]>
Date:   2016-01-12T08:08:20Z

    [SPARK-12768][SQL] Remove CaseKeyWhen

----


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