[MDEV-23143] Add JSON_EQUALS function to check JSON equality Created: 2020-07-10 Updated: 2023-11-27 Resolved: 2021-09-12 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | JSON |
| Fix Version/s: | 10.7.0 |
| Type: | Task | Priority: | Major |
| Reporter: | Eric Herman | Assignee: | Vicențiu Ciorbaru |
| Resolution: | Fixed | Votes: | 2 |
| Labels: | JSON, beginner-friendly, gsoc21 | ||
| Issue Links: |
|
||||||||||||||||
| Description |
|
JSON_CONTAINS can be used to test for JSON object equality in some cases, but we seem to lack a clear JSON_EQUALS function. |
| Comments |
| Comment by Eric Herman [ 2020-07-10 ] | |||||||||||||||||||||||||||||||||||
|
Thank you @Kartik Soneji , this was non-obvious to me from the https://mariadb.com/kb/en/json-functions/ page. While JSON_CONTAINS can work, to avoid matching larger objects we probably want two comparisons, e.g.::
I feel like a more explicit JSON_EQUALS is still desired. It looks like fairly common problem: | |||||||||||||||||||||||||||||||||||
| Comment by Rodrigo Souza [ 2020-10-03 ] | |||||||||||||||||||||||||||||||||||
|
@Daniel Black I wonder if would be OK for me to take this task? Do we have anybody to talk about it and get advices? | |||||||||||||||||||||||||||||||||||
| Comment by LiuYuJi [ 2021-03-20 ] | |||||||||||||||||||||||||||||||||||
|
Hello, I am Liu Yuji, I have studied C/C++ programming and SQL and JSON. I would like to work on this project in GSOC 2021, and I have installed MariaDB and MariaDB's source code on my system. Hope someone can give me some guidance, I would be very grateful for that. | |||||||||||||||||||||||||||||||||||
| Comment by Roel Van de Paar [ 2021-09-25 ] | |||||||||||||||||||||||||||||||||||
|
Logged |