Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-39315

Refactor PromotePrecision and CheckOverflow with decimal binary arithmetic

    XMLWordPrintableJSON

Details

    • Umbrella
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.4.0
    • None
    • SQL
    • None

    Description

      For a decimal binary arithmetic expression, we correct its runtime data type and result data type at DecimalPrecision. It has two drawback:

      1. it has some bug with the different ordering of the rules in TypeCoercion
      2. it's unnecessary to change its runtime data type for decimal, as it supports eval with different precision. So what we need to do is change the result type precision.

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            ulysses XiDuo You
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: