Uploaded image for project: 'Calcite'
  1. Calcite
  2. CALCITE-3435

Enable decimal modulus operation to allow numeric with non-zero scale

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.16.0, 1.21.0
    • Fix Version/s: None
    • Component/s: None

      Description

      mod's return type is

      chain(DECIMAL_MOD_NULLABLE, ARG1_NULLABLE),

      but mod(33.5,7)'s result is 5.5, not in line with ARG1_NULLABLE.

      This causes floor(mod(33.5,7)) wrongly returns 5.5

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                donnyzone Feng Zhu
                Reporter:
                jiezouSH jiezouSH
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 40m
                  40m