Uploaded image for project: 'IMPALA'
  1. IMPALA
  2. IMPALA-4964

Decimal modulo operator is overflowing

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: Impala 2.9.0
    • Fix Version/s: Impala 2.11.0
    • Component/s: Backend
    • Labels:
      None

      Description

      Some of the expr test tests were not catching NULL values being produced. The following seems to be getting converted to NULL.

      cast(998 as decimal(38,0)) % cast(0.999 as decimal(38,38))
      cast(0.998 as decimal(38,38)) % cast(999 as decimal(38,0))

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                tarasbob Taras Bobrovytsky
                Reporter:
                zamsden_impala_ad21 Zachary
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: