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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.16.0, 1.21.0
    • 1.22.0
    • 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

              donnyzone Feng Zhu
              jiezouSH jiezouSH
              Votes:
              0 Vote for this issue
              Watchers:
              5 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