Uploaded image for project: 'Calcite'
  1. Calcite
  2. CALCITE-3066

RelToSqlConverter may incorrectly throw an AssertionError for some decimal literals

    XMLWordPrintableJSON

Details

    Description

      Issue can be reproduced adding the following query to RelToSqlConverterTest:

      select -0.0000000123 from "expense_fact";
      
      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
      

      Attachments

        Issue Links

          Activity

            People

              jcamacho Jesús Camacho Rodríguez
              jcamacho Jesús Camacho Rodríguez
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 50m
                  50m