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

JSON_ARRAYAGG bug phenomenon

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Not a Bug
    • 10.6.17
    • N/A
    • JSON
    • None

    Description

      -- #1
      -- print [{}] - VALID
      SELECT JSON_ARRAYAGG(JSON_OBJECT());
       
      -- #2
      -- print [NULL] - INVALID ???
      SELECT JSON_ARRAYAGG(JSON_OBJECT())
      WHERE FALSE;
      

      The code #2 expects no rows selected, but it actually selects a single row with a [NULL] value.
      I don't see this in other functions, but I see this error in the JSON_ARRAYAGG() function.

      Attachments

        Activity

          People

            Unassigned Unassigned
            ksk_d1sk Gyu Ha Hwang
            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.