You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Wenchen Fan (Jira)" <ji...@apache.org> on 2019/10/16 13:09:00 UTC

[jira] [Resolved] (SPARK-29468) Floating point literals produce incorrect SQL

     [ https://issues.apache.org/jira/browse/SPARK-29468?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Wenchen Fan resolved SPARK-29468.
---------------------------------
    Fix Version/s: 3.0.0
       Resolution: Fixed

Issue resolved by pull request 26114
[https://github.com/apache/spark/pull/26114]

> Floating point literals produce incorrect SQL
> ---------------------------------------------
>
>                 Key: SPARK-29468
>                 URL: https://issues.apache.org/jira/browse/SPARK-29468
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 2.4.4
>            Reporter: Jose Torres
>            Assignee: Jose Torres
>            Priority: Major
>             Fix For: 3.0.0
>
>
> A FLOAT literal 1.2345 returns SQL `CAST(1.2345 AS FLOAT)`. For very small values this doesn't work; `CAST(1e-44 AS FLOAT)` for example doesn't parse, because the parser tries to squeeze the numeric literal 1e-44 into a DECIMAL(38).



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org