Return-Path: X-Original-To: apmail-spark-reviews-archive@minotaur.apache.org Delivered-To: apmail-spark-reviews-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id BBBD2184D5 for ; Sun, 17 Jan 2016 17:17:27 +0000 (UTC) Received: (qmail 32798 invoked by uid 500); 17 Jan 2016 17:17:27 -0000 Delivered-To: apmail-spark-reviews-archive@spark.apache.org Received: (qmail 32771 invoked by uid 500); 17 Jan 2016 17:17:27 -0000 Mailing-List: contact reviews-help@spark.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list reviews@spark.apache.org Received: (qmail 32759 invoked by uid 99); 17 Jan 2016 17:17:27 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 17 Jan 2016 17:17:27 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id ED953E0505; Sun, 17 Jan 2016 17:17:26 +0000 (UTC) From: hvanhovell To: reviews@spark.apache.org Reply-To: reviews@spark.apache.org Message-ID: Subject: [GitHub] spark pull request: [SPARK-12848][SQL] Change parsed decimal liter... Content-Type: text/plain Date: Sun, 17 Jan 2016 17:17:26 +0000 (UTC) GitHub user hvanhovell opened a pull request: https://github.com/apache/spark/pull/10796 [SPARK-12848][SQL] Change parsed decimal literal datatype from Double to Decimal The current parser turns a decimal literal, for example ```12.1```, into a Double. The problem with this approach is that we convert an exact literal into a non-exact ```Double```. The PR changes this behavior, a Decimal literal is now converted into an extact ```BigDecimal```. The behavior for scientific decimals, for example ```12.1e01```, is unchanged. This will be converted into a Double. cc @davies @rxin You can merge this pull request into a Git repository by running: $ git pull https://github.com/hvanhovell/spark SPARK-12848 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/spark/pull/10796.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 #10796 ---- commit f5ecab6431951fa6314a36f6f73bd50562bb31bc Author: Herman van Hovell Date: 2016-01-17T17:08:27Z Change parsed decimal literal datatype from Double to Decimal ---- --- 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 infrastructure@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org For additional commands, e-mail: reviews-help@spark.apache.org