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

RexLiteral cannot represent accurately floating point values, including NaN, Infinity

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.13.0
    • 1.37.0
    • core

    Description

      Currently we are working in Drill to allow support for Nan an Infinity values .
      When using such values with functions we see the NumberFormatException exception.

      Query example: select sin(cast('NaN' as float))

      RexBuilder#clean and other RexBuilder's methods use BigDecimal for handling Double values, that's why we get NumberFormatException for nan,inf values.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              volodymyr.tkach Volodymyr Tkach
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

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