Details
-
Task
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
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
- relates to
-
MDEV-28922 JSON_NORMALIZE handling of duplicate keys
- Open
-
MDEV-23143 Add JSON_EQUALS function to check JSON equality
- Closed
-
MDEV-29026 ASAN use-after-poison in json_normalize_number
- Confirmed