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

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: Impala 1.4, Impala 1.4.1, Impala 2.0, Impala 2.0.1, Impala 2.1, Impala 2.1.1
    • Fix Version/s: Impala 2.3.0
    • Component/s: None
    • Labels:

      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: