GitHub user adrian-wang opened a pull request:

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

    [SPARK-10083] [SQL] CaseWhen should support type coercion of DecimalType 
and FractionalType

    create t1 (a decimal(7, 2), b long);
    select case when 1=1 then a else 1.0 end from t1;
    select case when 1=1 then a else b end from t1;


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

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

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

    https://github.com/apache/spark/pull/8270.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 #8270
    
----
commit 148754314d068091ecf0f68f4d96e53ddd8e8f1e
Author: Daoyuan Wang <daoyuan.w...@intel.com>
Date:   2015-08-18T08:52:40Z

    case when should support types of decimal and fractional

----


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

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to