GitHub user hvanhovell opened a pull request:

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

    [SPARK-17246][SQL] Add BigDecimal literal

    ## What changes were proposed in this pull request?
    This PR adds parser support for `BigDecimal` literals. If you append the 
suffix `BD` to a valid number then this will be interpreted as a `BigDecimal`, 
for example `12.0E10BD` will interpreted into a BigDecimal with scale -9 and 
precision 3. This is useful in situations where you need exact values.
    
    ## How was this patch tested?
    Added tests to `ExpressionParserSuite`, `ExpressionSQLBuilderSuite` and 
`SQLQueryTestSuite`.


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

    $ git pull https://github.com/hvanhovell/spark SPARK-17246

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

    https://github.com/apache/spark/pull/14819.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 #14819
    
----
commit fda100f3c42bf82c9d0accafc7230c906e0b8317
Author: Herman van Hovell <hvanhov...@databricks.com>
Date:   2016-08-25T23:31:47Z

    Add BigDecimal literal to parser.

----


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