Uploaded image for project: 'MariaDB ColumnStore'
  1. MariaDB ColumnStore
  2. MCOL-4643

UDAF may return bad value when it should return NULL

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 5.5.1
    • Fix Version/s: 5.6.1
    • Component/s: ExeMgr
    • Labels:
      None
    • Sprint:
      2021-5, 2021-6, 2021-7

      Description

      During final evaluation of UDAF, if the result should be NULL and if, in that particular thread, a non-NULL value has already been created for another row (because of GROUP BY), that other calculated number is returned, rather than NULL.

      This is because the variable used to store the result is not reset inside the loop.

      During execution, this is unpredictable because one never knows which rows will be evaluated in which threads.

        Attachments

          Activity

            People

            Assignee:
            dleeyh Daniel Lee
            Reporter:
            David.Hall David Hall
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Git Integration