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

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

    XMLWordPrintableJSON

Details

    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

              mbudiu Mihai Budiu
              volodymyr.tkach Volodymyr Tkach
              Votes:
              0 Vote for this issue
              Watchers:
              5 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 - 10m
                  10m