GitHub user gvramana opened a pull request:

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

    [SPARK-3268][SQL] DoubleType, FloatType and DecimalType modulus support

    Supported modulus operation using % operator on fractional datatypes 
FloatType, DoubleType and DecimalType
    Example:
    SELECT 1388632775.0 % 60 from tablename LIMIT 1
    
    Author : Venkata Ramana Gollamudi [email protected]

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

    $ git pull https://github.com/gvramana/spark double_modulus_support

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

    https://github.com/apache/spark/pull/2457.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 #2457
    
----
commit 296d2539c0d745d0450441997390052352b8731d
Author: Venkata Ramana Gollamudi <[email protected]>
Date:   2014-09-18T11:06:10Z

    modified to add modulus support to fractional types float,double,decimal

commit 513d0e0ce4fdaf3faf11698d4ea079c79538f402
Author: Venkata Ramana Gollamudi <[email protected]>
Date:   2014-09-18T11:06:10Z

    modified to add modulus support to fractional types float,double,decimal

commit e112c09ccf0be8354afe3359a4d3e18c6346475c
Author: Venkata Ramana Gollamudi <[email protected]>
Date:   2014-09-19T07:47:35Z

    corrected the testcase

commit 3624471e5b65ccb92fb84d7de9303669ec79965e
Author: Venkata Ramana Gollamudi <[email protected]>
Date:   2014-09-19T08:01:25Z

    modified testcase

----


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