Uploaded image for project: 'IMPALA'
  1. IMPALA
  2. IMPALA-10350 Impala loses double precision because of DECIMAL->DOUBLE cast
  3. IMPALA-10680

Replace StringToFloatInternal that converts String to Float using fast_double_parser library

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • Impala 4.1.0
    • None
    • None
    • ghx-label-9

    Description

      Based on the comment made by csringhofer here, we can use fast_double_parser (introduced by IMPALA-10654) to do String to Double conversion here. This would ensure precision loss can be avoided in cases like below:

      select cast("0.43149576573887316" as double);
      result: 0.4314957657388731
      

      Attachments

        Activity

          People

            amargoor Amogh Margoor
            amargoor Amogh Margoor
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: