[MDEV-22840] JSON_ARRAYAGG gives wrong results with NULL values and ORDER by clause Created: 2020-06-09 Updated: 2020-06-16 Resolved: 2020-06-12 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Optimizer |
| Affects Version/s: | 10.5 |
| Fix Version/s: | 10.5.4 |
| Type: | Bug | Priority: | Major |
| Reporter: | Varun Gupta (Inactive) | Assignee: | Varun Gupta (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||
| Description |
|
Here is an example create table t1(a varchar(255));
So without ORDER BY clause inside JSON_ARRAYAGG we see null in the output
With ORDER BY clause there is no more null in the result |
| Comments |
| Comment by Varun Gupta (Inactive) [ 2020-06-09 ] |
|
Patch |
| Comment by Sergei Petrunia [ 2020-06-12 ] |
|
Ok to push |