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

UDAF may return bad value when it should return NULL

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Blocker
    • Resolution: Fixed
    • 5.5.1
    • 5.6.1
    • ExeMgr
    • None
    • 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

            dleeyh Daniel Lee (Inactive)
            David.Hall David Hall (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.