Uploaded image for project: 'MariaDB ColumnStore'
  1. MariaDB ColumnStore
  2. MCOL-641 Full DECIMAL support in ColumnStore
  3. MCOL-4452

UDAF processing might return wrong results duplicating one of the previous group's results

    XMLWordPrintable

    Details

    • Type: Sub-Task
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 6.1.1
    • Fix Version/s: 6.1.1
    • Component/s: ExeMgr, PrimProc
    • Labels:
      None
    • Sprint:
      2020-1, 2020-2, 2020-3, 2020-4, 2020-5, 2020-6, 2020-7, 2021-1, 2021-2, 2021-3, 2021-4, 2021-5, 2021-6, 2021-7, 2021-8, 2021-9

      Description

      Consider the example:

      MariaDB [test]> select CCHAR9, regr_avgx(CDECIMAL9_2, length(CCHAR9))  from datatypetestm1 where CCHAR9 in ('zzzzzzzzz','iiii') group by CCHAR9;
      +-----------+----------------------------------------+
      | CCHAR9    | regr_avgx(CDECIMAL9_2, length(CCHAR9)) |
      +-----------+----------------------------------------+
      | iiii      |                               9.000000 |
      | zzzzzzzzz |                               9.000000 |
      +-----------+----------------------------------------+
      2 rows in set (0.021 sec)
       
      
      

      The expected output must be this:

      MariaDB [test]> select CCHAR9, regr_avgx(CDECIMAL9_2, length(CCHAR9))  from datatypetestm1 where CCHAR9 in ('zzzzzzzzz','iiii') group by CCHAR9;
      +-----------+----------------------------------------+
      | CCHAR9    | regr_avgx(CDECIMAL9_2, length(CCHAR9)) |
      +-----------+----------------------------------------+
      | iiii      |                               4.000000 |
      | zzzzzzzzz |                               9.000000 |
      +-----------+----------------------------------------+
      2 rows in set (0.021 sec)
      

        Attachments

          Activity

            People

            Assignee:
            drrtuy Roman
            Reporter:
            drrtuy Roman
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Git Integration