Uploaded image for project: 'IMPALA'
  1. IMPALA
  2. IMPALA-1952

Support CASTing a string literal representing a number in scientific notation to a DECIMAL.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • Impala 1.4, Impala 1.4.1, Impala 2.0, Impala 2.0.1, Impala 2.1, Impala 2.1.1
    • Impala 2.3.0
    • None

    Description

      We should extend our support for string->decimal casts to accept strings representing a number in scientific notation. For example:

      select cast("1.0e7" as decimal(9,4))
      

      In the code, the problem is that StringParser::StringToDecimal() in string-parser.h does not support parsing scientific notation.

      Attachments

        Issue Links

          Activity

            People

              caseyc casey
              alex.behm Alexander Behm
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: