Uploaded image for project: 'Phoenix'
  1. Phoenix
  2. PHOENIX-2483

Aggregate functions on floating point values have a fixed scale of 4

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • 4.6.0
    • None
    • None

    Description

      Doing a sum with the first column being a FLOAT or DOUBLE will return a DECIMAL with a fixed scale of 4.

      Doing any multiplication or division will also result in a DECIMAL with scale 4.

      I propose that the return value should either:
      -always be DECIMAL with appropriate scale
      or
      -match the metadata of the first column

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              kliew Kevin Liew
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: