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/14 01:15:01 UTC

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

Jesus Camacho Rodriguez created CALCITE-3066:
------------------------------------------------

             Summary: 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


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)