Uploaded image for project: 'Tajo'
  1. Tajo
  2. TAJO-1341

The result type of modular operation must be integer.

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Invalid
    • Affects Version/s: None
    • Fix Version/s: 0.11.0
    • Component/s: None
    • Labels:
      None

      Description

      The result data type of all modular operations must be integer. But, in the current implementation, it can be real data types. We need to fix it.

        Activity

        Hide
        hyunsik Hyunsik Choi added a comment -

        Yes, this is an invalid issue. I close it as invalid.

        hyunsik=> select 5.3 % 2.1;
         ?column? 
        ----------
              1.1
        
        Show
        hyunsik Hyunsik Choi added a comment - Yes, this is an invalid issue. I close it as invalid. hyunsik=> select 5.3 % 2.1; ?column? ---------- 1.1
        Hide
        hys9958 YeonSu Han added a comment -

        Hi Hyunsik,

        I think that don't need to fix the this issues.

        If either number is a floating-point number, the result is a floating-point number that represents the remainder.
        12 mod 4.3 = 3.4
        12.6 mod 5 = 2.59
        47.9 mod 9.35 = 1.15

        via https://msdn.microsoft.com/en-us/library/se0w9esz.aspx

        Show
        hys9958 YeonSu Han added a comment - Hi Hyunsik, I think that don't need to fix the this issues. If either number is a floating-point number, the result is a floating-point number that represents the remainder. 12 mod 4.3 = 3.4 12.6 mod 5 = 2.59 47.9 mod 9.35 = 1.15 via https://msdn.microsoft.com/en-us/library/se0w9esz.aspx

          People

          • Assignee:
            hys9958 YeonSu Han
            Reporter:
            hyunsik Hyunsik Choi
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development