Uploaded image for project: 'Apache Drill'
  1. Apache Drill
  2. DRILL-8066

Cannot convert non-finite floating point literals

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.19.0
    • 1.20.0
    • None
    • None

    Description

      Drill can process floating point values like -Infinity, +Infinity and NaN but it fails to correctly convert queries containing these values as constants during planning.  E.g. this query produces a NumberFormatException.

       

      select cast('-Infinity' as float);

      Attachments

        Activity

          People

            dzamo James Turton
            dzamo James Turton
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: