You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Jesus Camacho Rodriguez (JIRA)" <ji...@apache.org> on 2019/05/15 18:18:00 UTC

[jira] [Resolved] (CALCITE-3066) RelToSqlConverter may incorrectly throw an AssertionError for some decimal literals

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

Jesus Camacho Rodriguez resolved CALCITE-3066.
----------------------------------------------
       Resolution: Fixed
    Fix Version/s: 1.20.0

Fixed in [d6896202c865b38b7821f1e0b644e1de0c95eda2|https://github.com/apache/calcite/commit/d6896202c865b38b7821f1e0b644e1de0c95eda2].

> RelToSqlConverter may incorrectly throw an AssertionError for some decimal literals
> -----------------------------------------------------------------------------------
>
>                 Key: CALCITE-3066
>                 URL: https://issues.apache.org/jira/browse/CALCITE-3066
>             Project: Calcite
>          Issue Type: Bug
>          Components: core
>            Reporter: Jesus Camacho Rodriguez
>            Assignee: Jesus Camacho Rodriguez
>            Priority: Minor
>              Labels: pull-request-available
>             Fix For: 1.20.0
>
>          Time Spent: 50m
>  Remaining Estimate: 0h
>
> Issue can be reproduced adding the following query to {{RelToSqlConverterTest}}:
> {code:sql}
> select -0.0000000123 from "expense_fact";
> {code}
> {code}
> Caused by: java.lang.AssertionError: -1.23E-8
> 	at org.apache.calcite.sql.SqlLiteral.createExactNumeric(SqlLiteral.java:872)
> 	at org.apache.calcite.rel.rel2sql.SqlImplementor$Context.toSql(SqlImplementor.java:502)
> 	at org.apache.calcite.rel.rel2sql.RelToSqlConverter.visit(RelToSqlConverter.java:186)
> 	... 34 more
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)