GitHub user guowei2 opened a pull request:

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

    [SPARK-5203][SQL] fix union with different decimal type

       When union non-decimal types with decimals, we use the following rules:
          - FIRST `intTypeToFixed`, then fixed union decimals with 
precision/scale p1/s2 and p2/s2  will be promoted to
          DecimalType(max(p1, p2), max(s1, s2))
          - FLOAT and DOUBLE cause fixed-length decimals to turn into DOUBLE 
(this is the same as Hive,
          but note that unlimited decimals are considered bigger than doubles 
in WidenTypes)

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

    $ git pull https://github.com/guowei2/spark SPARK-5203

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

    https://github.com/apache/spark/pull/4004.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 #4004
    
----
commit cb14704214b3d114d3fe4341885637c04db0f944
Author: guowei2 <[email protected]>
Date:   2015-01-12T08:32:43Z

    fix union with different decimal type

----


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