Uploaded image for project: 'Teiid'
  1. Teiid
  2. TEIID-5692

Scaling float/double to bigdecimal/numeric is not always necessary

    XMLWordPrintable

Details

    • Quality Risk
    • Status: Resolved (View Workflow)
    • Major
    • Resolution: Done
    • None
    • 12.2
    • Query Engine
    • None

    Description

      There is logic in the FloatingNumberToBigDecimalTransform to set the scale of the result bigdecimal to something representative of the scale of a float/double. However the way that java represents precision/scale of small and large value - for example 0.0d becomes 0E-15 after the transformation - implies more precision or scale than expected.

      Attachments

        Activity

          People

            rhn-engineering-shawkins Steven Hawkins
            rhn-engineering-shawkins Steven Hawkins
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: