Details
-
Task
-
Status: Closed (View Workflow)
-
Critical
-
Resolution: Fixed
-
None
Description
MySQL 8.0 has JSON_ARRAYAGG and JSON_OBJECTAGG. These are also available in Oracle databases.
The JSON_ARRAYAGG in addition to the MySQL features supports the DISTINCT mode.
So the JSON_ARRAYAGG(DISTINCT expr) will only collect the unique values in the resulting array.
Attachments
Issue Links
- causes
-
MDEV-21410 Document JSON_ARRAYAGG and JSON_OBJECTAGG
-
- Closed
-
- relates to
-
MDEV-24784 JSON_ARRAYAGG charset issue
-
- Closed
-
-
MDEV-17397 Implement JSON functions available in MySQL 8.0 but not MariaDB
-
- Open
-
-
MDEV-21528 json_arrayagg crashes in Item_func_group_concat::add, Assertion `(ptr != __null && end >= ptr) || (ptr == __null && end == __null)' failed in copy_fields
-
- Closed
-
-
MDEV-21902 Nested JSON_ARRAYAGG in JSON_OBJECT should not get escaped
-
- Closed
-
-
MDEV-21914 JSON_ARRAYAGG doesn't reject ORDER BY clause, but doesn't work either
-
- Closed
-
-
MDEV-21915 Server crashes in copy_fields,Item_func_group_concat::add while using json_arrayagg() as a window function
-
- Closed
-
-
MDEV-22011 DISTINCT with JSON_ARRAYAGG gives wrong results
-
- Closed
-
-
MDEV-22084 Squared brackets missing from JSON_ARRAYAGG when used in a view
-
- Closed
-
-
MDEV-22837 JSON_ARRAYAGG and JSON_OBJECTAGG treat JSON arguments as text
-
- Closed
-
-
MDEV-26506 Over-quoted JSON when combining JSON_ARRAYAGG with JSON_OBJECT
-
- Closed
-
-
MDEV-30412 JSON_OBJECTAGG doesn't escape double quote in key
-
- Closed
-
Activity
Field | Original Value | New Value |
---|---|---|
Component/s | JSON [ 13908 ] |
Assignee | Alexey Botchkov [ holyfoot ] |
Fix Version/s | 10.4 [ 22408 ] |
Status | Open [ 1 ] | Confirmed [ 10101 ] |
Assignee | Alexey Botchkov [ holyfoot ] | Sergei Golubchik [ serg ] |
Assignee | Sergei Golubchik [ serg ] | Alexey Botchkov [ holyfoot ] |
Status | Confirmed [ 10101 ] | In Review [ 10002 ] |
Link | This issue is part of MDEV-17397 [ MDEV-17397 ] |
Epic Link | PT-76 [ 68557 ] |
Epic Link | PT-76 [ 68557 ] |
Fix Version/s | 10.5 [ 23123 ] | |
Fix Version/s | 10.4 [ 22408 ] | |
NRE Projects | RM_104_others | RM_105_CANDIDATE |
Due Date | 2019-08-26 |
Link | This issue relates to MDEV-17397 [ MDEV-17397 ] |
Link | This issue is part of MDEV-17397 [ MDEV-17397 ] |
Priority | Major [ 3 ] | Critical [ 2 ] |
Due Date | 2019-08-26 | 2019-10-08 |
Due Date | 2019-10-08 |
Fix Version/s | 10.5.0 [ 23709 ] | |
Fix Version/s | 10.5 [ 23123 ] | |
Resolution | Fixed [ 1 ] | |
Status | In Review [ 10002 ] | Closed [ 6 ] |
Link |
This issue causes |
Link |
This issue relates to |
Link |
This issue relates to |
Link |
This issue relates to |
Link |
This issue relates to |
Description | MySQL 8.0 has [JSON_ARRAYAGG|https://dev.mysql.com/doc/refman/8.0/en/group-by-functions.html#function_json-arrayagg] and [JSON_OBJECTAGG|https://dev.mysql.com/doc/refman/8.0/en/group-by-functions.html#function_json-objectagg]. These are also available in Oracle databases. |
MySQL 8.0 has [JSON_ARRAYAGG|https://dev.mysql.com/doc/refman/8.0/en/group-by-functions.html#function_json-arrayagg] and [JSON_OBJECTAGG|https://dev.mysql.com/doc/refman/8.0/en/group-by-functions.html#function_json-objectagg]. These are also available in Oracle databases.
The JSON_ARRAYAGG in addition to the MySQL features supports the DISTINCT mode. So the JSON_ARRAYAGG(DISTINCT expr) will only collect the unique values in the resulting array. |
Link |
This issue relates to |
Link |
This issue relates to |
Link |
This issue relates to |
Link |
This issue relates to |
Link |
This issue relates to |
Workflow | MariaDB v3 [ 88127 ] | MariaDB v4 [ 133617 ] |
Epic Link | MDEV-17397 [ 70163 ] |
Link |
This issue relates to |
Just for the record, they're in the standard too