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

Add JSON_NORMALIZE function to normalize JSON values

Details

    Description

      Background is this question on stackexchange:

      https://dba.stackexchange.com/questions/208481/mariadb-compare-json

      The task is to provide a function that can be used to compare 2 json documents for equality, then name can be e.g JSON_NORMALIZE

      JSON_COMPACT already takes care of removing spaces, but this is not sufficient.
      Keys need to be (recursively) sorted , and if spaces are removed, then documents can be compared as binary strings.

      Attachments

        Issue Links

          Activity

            wlad Vladislav Vaintroub created issue -
            wlad Vladislav Vaintroub made changes -
            Field Original Value New Value
            Description Background is this question on stackexchange:

            https://dba.stackexchange.com/questions/208481/mariadb-compare-json

            The task is to provide a function that can be used to compare 2 json documents for equality, then name can be e.g JSON_NORMALIZE

            JSON_COMPACT already takes care of removing spaces, but this is not sufficient.
            Keys need to be (recursively) sorted , and if spaces are removed, then equal documents can be compared as binary strings.
            Background is this question on stackexchange:

            https://dba.stackexchange.com/questions/208481/mariadb-compare-json

            The task is to provide a function that can be used to compare 2 json documents for equality, then name can be e.g JSON_NORMALIZE

            JSON_COMPACT already takes care of removing spaces, but this is not sufficient.
            Keys need to be (recursively) sorted , and if spaces are removed, then documents can be compared as binary strings.
            ralf.gebhardt Ralf Gebhardt made changes -
            Fix Version/s 10.4 [ 22408 ]
            serg Sergei Golubchik made changes -
            serg Sergei Golubchik made changes -
            Labels beginner-friendly
            cvicentiu Vicențiu Ciorbaru made changes -
            Labels beginner-friendly beginner-friendly gsoc21
            cvicentiu Vicențiu Ciorbaru made changes -
            Assignee Vicențiu Ciorbaru [ cvicentiu ]
            serg Sergei Golubchik made changes -
            Fix Version/s 10.7.0 [ 26072 ]
            Resolution Fixed [ 1 ]
            Status Open [ 1 ] Closed [ 6 ]
            serg Sergei Golubchik made changes -
            Roel Roel Van de Paar made changes -
            Summary Function to normalize a json value Add JSON_NORMALIZE function to normalize JSON values
            serg Sergei Golubchik made changes -
            Workflow MariaDB v3 [ 87633 ] MariaDB v4 [ 133570 ]
            serg Sergei Golubchik made changes -
            ralf.gebhardt Ralf Gebhardt made changes -
            alice Alice Sherepa made changes -

            People

              cvicentiu Vicențiu Ciorbaru
              wlad Vladislav Vaintroub
              Votes:
              0 Vote for this issue
              Watchers:
              6 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.