Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-22011

DISTINCT with JSON_ARRAYAGG gives wrong results

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 10.5
    • 10.5.4
    • Optimizer
    • None

    Description

      As JSON_ARRAYAGG is implemented as a wrapper over Item_func_group_concat, MDEV-11563 is going to affect JSON_ARRAYAGG too.

      The problem with DISTINCT in JSON_ARRAYAGG is that it expects the values read from the table for each record. It does not use the key but instead calls val_str() for all the arguments in the GROUP_CONCAT function.

      Attachments

        Issue Links

          Activity

            Transition Time In Source Status Execution Times
            Varun Gupta (Inactive) made transition -
            Open In Progress
            15h 23m 1
            Varun Gupta (Inactive) made transition -
            In Progress In Review
            27d 9h 5m 1
            Varun Gupta (Inactive) made transition -
            Stalled In Review
            1d 15h 34m 1
            Sergei Petrunia made transition -
            In Review Stalled
            50d 14h 47m 2
            Varun Gupta (Inactive) made transition -
            Stalled Closed
            22h 21m 1

            People

              varun Varun Gupta (Inactive)
              varun Varun Gupta (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 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.