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-28922JSON_NORMALIZE handling of duplicate keys
Open
MDEV-23143Add JSON_EQUALS function to check JSON equality
Closed
MDEV-29026ASAN use-after-poison in json_normalize_number
Hi everyone, I want to work on this issue as a GSOC 21 participant, I have sent an email related to the issues explaining my ideas to the mail-list. Can anyone discuss with me about my ideas?
Hollow Man
added a comment - Hi everyone, I want to work on this issue as a GSOC 21 participant, I have sent an email related to the issues explaining my ideas to the mail-list. Can anyone discuss with me about my ideas?
Note that Pandas doesn't do what this MDEV describes, but I think that it can give you some ideas about potential challenges when working with JSON.
Vicențiu Ciorbaru
added a comment - Hi hollowman86 !
You have some of my thoughts in a reply here:
https://lists.launchpad.net/maria-developers/msg12629.html
Note that Pandas doesn't do what this MDEV describes, but I think that it can give you some ideas about potential challenges when working with JSON.
People
Vicențiu Ciorbaru
Vladislav Vaintroub
Votes:
0Vote for this issue
Watchers:
6Start 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.
{"report":{"fcp":2491.0999999046326,"ttfb":856.4000000953674,"pageVisibility":"visible","entityId":67928,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"95039e1e-c73f-4cea-92bc-4d52b8821c2f","navigationType":0,"readyForUser":2565,"redirectCount":0,"resourceLoadedEnd":3491.7999997138977,"resourceLoadedStart":861.9000000953674,"resourceTiming":[{"duration":1071.3999996185303,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":861.9000000953674,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":861.9000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1933.2999997138977,"responseStart":0,"secureConnectionStart":0},{"duration":1072.3000001907349,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2cib/820016/12ta74/494e4c556ecbb29f90a3d3b4f09cb99c/_/download/contextbatch/css/jira.browse.project,project.issue.navigator,jira.view.issue,jira.general,jira.global,atl.general,-_super/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true&whisper-enabled=true","startTime":862.2999997138977,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":862.2999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1934.5999999046326,"responseStart":0,"secureConnectionStart":0},{"duration":1127.1999998092651,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":862.4000000953674,"connectEnd":862.4000000953674,"connectStart":862.4000000953674,"domainLookupEnd":862.4000000953674,"domainLookupStart":862.4000000953674,"fetchStart":862.4000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":862.4000000953674,"responseEnd":1989.5999999046326,"responseStart":1989.5999999046326,"secureConnectionStart":862.4000000953674},{"duration":1180.9000000953674,"initiatorType":"script","name":"https://jira.mariadb.org/s/2d8175ec2fa4c816e8023260bd8c1786-CDN/lu2cib/820016/12ta74/494e4c556ecbb29f90a3d3b4f09cb99c/_/download/contextbatch/js/jira.browse.project,project.issue.navigator,jira.view.issue,jira.general,jira.global,atl.general,-_super/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&locale=en&slack-enabled=true&whisper-enabled=true","startTime":862.5999999046326,"connectEnd":862.5999999046326,"connectStart":862.5999999046326,"domainLookupEnd":862.5999999046326,"domainLookupStart":862.5999999046326,"fetchStart":862.5999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":862.5999999046326,"responseEnd":2043.5,"responseStart":2043.5,"secureConnectionStart":862.5999999046326},{"duration":1184.8000001907349,"initiatorType":"script","name":"https://jira.mariadb.org/s/a9324d6758d385eb45c462685ad88f1d-CDN/lu2cib/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":862.7999997138977,"connectEnd":862.7999997138977,"connectStart":862.7999997138977,"domainLookupEnd":862.7999997138977,"domainLookupStart":862.7999997138977,"fetchStart":862.7999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":862.7999997138977,"responseEnd":2047.5999999046326,"responseStart":2047.5999999046326,"secureConnectionStart":862.7999997138977},{"duration":1185,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":863.0999999046326,"connectEnd":863.0999999046326,"connectStart":863.0999999046326,"domainLookupEnd":863.0999999046326,"domainLookupStart":863.0999999046326,"fetchStart":863.0999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":863.0999999046326,"responseEnd":2048.0999999046326,"responseStart":2048.0999999046326,"secureConnectionStart":863.0999999046326},{"duration":1185.4000000953674,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":863.1999998092651,"connectEnd":863.1999998092651,"connectStart":863.1999998092651,"domainLookupEnd":863.1999998092651,"domainLookupStart":863.1999998092651,"fetchStart":863.1999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":863.1999998092651,"responseEnd":2048.5999999046326,"responseStart":2048.5999999046326,"secureConnectionStart":863.1999998092651},{"duration":1282.3999996185303,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2cib/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":863.4000000953674,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":863.4000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":2145.7999997138977,"responseStart":0,"secureConnectionStart":0},{"duration":1185.5,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":863.5999999046326,"connectEnd":863.5999999046326,"connectStart":863.5999999046326,"domainLookupEnd":863.5999999046326,"domainLookupStart":863.5999999046326,"fetchStart":863.5999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":863.5999999046326,"responseEnd":2049.0999999046326,"responseStart":2049.0999999046326,"secureConnectionStart":863.5999999046326},{"duration":1282.4000000953674,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2cib/820016/12ta74/d176f0986478cc64f24226b3d20c140d/_/download/contextbatch/css/com.atlassian.jira.projects.sidebar.init,-_super,-project.issue.navigator,-jira.view.issue/batch.css?jira.create.linked.issue=true","startTime":863.6999998092651,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":863.6999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":2146.0999999046326,"responseStart":0,"secureConnectionStart":0},{"duration":1185.6999998092651,"initiatorType":"script","name":"https://jira.mariadb.org/s/5d5e8fe91fbc506585e83ea3b62ccc4b-CDN/lu2cib/820016/12ta74/d176f0986478cc64f24226b3d20c140d/_/download/contextbatch/js/com.atlassian.jira.projects.sidebar.init,-_super,-project.issue.navigator,-jira.view.issue/batch.js?jira.create.linked.issue=true&locale=en","startTime":864,"connectEnd":864,"connectStart":864,"domainLookupEnd":864,"domainLookupStart":864,"fetchStart":864,"redirectEnd":0,"redirectStart":0,"requestStart":864,"responseEnd":2049.699999809265,"responseStart":2049.699999809265,"secureConnectionStart":864},{"duration":2619.0999999046326,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":872.1999998092651,"connectEnd":872.1999998092651,"connectStart":872.1999998092651,"domainLookupEnd":872.1999998092651,"domainLookupStart":872.1999998092651,"fetchStart":872.1999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":872.1999998092651,"responseEnd":3491.2999997138977,"responseStart":3491.2999997138977,"secureConnectionStart":872.1999998092651},{"duration":2619.5999999046326,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":872.1999998092651,"connectEnd":872.1999998092651,"connectStart":872.1999998092651,"domainLookupEnd":872.1999998092651,"domainLookupStart":872.1999998092651,"fetchStart":872.1999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":872.1999998092651,"responseEnd":3491.7999997138977,"responseStart":3491.7999997138977,"secureConnectionStart":872.1999998092651},{"duration":986.5,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":2158.9000000953674,"connectEnd":2158.9000000953674,"connectStart":2158.9000000953674,"domainLookupEnd":2158.9000000953674,"domainLookupStart":2158.9000000953674,"fetchStart":2158.9000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":2158.9000000953674,"responseEnd":3145.4000000953674,"responseStart":3145.4000000953674,"secureConnectionStart":2158.9000000953674},{"duration":1014.0999999046326,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":2482.199999809265,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":2482.199999809265,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":3496.2999997138977,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":706,"responseStart":857,"responseEnd":858,"domLoading":860,"domInteractive":3524,"domContentLoadedEventStart":3524,"domContentLoadedEventEnd":3566,"domComplete":4767,"loadEventStart":4767,"loadEventEnd":4768,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":3498.2999997138977},{"name":"bigPipe.sidebar-id.end","time":3499.199999809265},{"name":"bigPipe.activity-panel-pipe-id.start","time":3499.2999997138977},{"name":"bigPipe.activity-panel-pipe-id.end","time":3500.699999809265},{"name":"activityTabFullyLoaded","time":3583.2999997138977}],"measures":[],"correlationId":"5f406332e48e5a","effectiveType":"4g","downlink":9.7,"rtt":0,"serverDuration":97,"dbReadsTimeInMs":13,"dbConnsTimeInMs":22,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
Hi everyone, I want to work on this issue as a GSOC 21 participant, I have sent an email related to the issues explaining my ideas to the mail-list. Can anyone discuss with me about my ideas?