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

json path regression

    XMLWordPrintable

Details

    • Can result in unexpected behaviour
    • JSON_VALUE should not allow wildcard in the path since it is not supposed to return multiple values as per json standards.
    • Q1/2026 Server Development

    Description

      MariaDB 12.2.2-MariaDB> SELECT JSON_VALUE('{"a": 1}', '$.*');
      +-------------------------------+
      | JSON_VALUE('{"a": 1}', '$.*') |
      +-------------------------------+
      | NULL                          |
      +-------------------------------+
      1 row in set (0,01 sec)
      

      Used to be fine on 12.1.2:

      MariaDB 12.1.2-MariaDB> SELECT JSON_VALUE('{"a": 1}', '$.*');
      +-------------------------------+
      | JSON_VALUE('{"a": 1}', '$.*') |
      +-------------------------------+
      | 1                             |
      +-------------------------------+
      1 row in set (0,01 sec)
      

      I think there might be some more related JSON path incompatibilities.

      Attachments

        Issue Links

          Activity

            People

              rucha174 Rucha Deodhar
              Markus Winand Markus Winand
              Alexey Botchkov Alexey Botchkov
              Votes:
              0 Vote for this issue
              Watchers:
              9 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.