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

The resulting type of decimal mod is computed incorrectly

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • Impala 3.0
    • None
    • Frontend
    • None
    • ghx-label-5

    Description

      The following two expressions should return the same type, but they do not.
      This returns a decimal(4,1):

      mod(9.9, 3)

      This one returns a decimal(2,1):

      9.9 % 3

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              tarasbob Taras Bobrovytsky
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: