You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2019/05/14 01:36:00 UTC

[jira] [Updated] (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 ]

ASF GitHub Bot updated CALCITE-3066:
------------------------------------
    Labels: pull-request-available  (was: )

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