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

Jiajun Xie resolved CALCITE-5999.
---------------------------------
    Fix Version/s: 1.36.0
         Assignee: Mihai Budiu
       Resolution: Fixed

> DECIMAL literals are sometimes unparsed looking as DOUBLE literals
> ------------------------------------------------------------------
>
>                 Key: CALCITE-5999
>                 URL: https://issues.apache.org/jira/browse/CALCITE-5999
>             Project: Calcite
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 1.35.0
>            Reporter: Mihai Budiu
>            Assignee: Mihai Budiu
>            Priority: Minor
>              Labels: pull-request-available
>             Fix For: 1.36.0
>
>
> Consider a DECIMAL literal such as "0.00000000000000001"
> When unparsed this will show up as 1E-17, which is interpreted by SQL as a 
> double literal.
> The bug is in the function SqlNumericLiteral.toValue(). The function calls 
> toString() on a BigDecimal value, but it should probably call toPlainString() 
> instead.
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to