[MDEV-25561] JSON_TABLE: bad error reporting for invalid json Created: 2021-04-28 Updated: 2022-06-01 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | JSON |
| Affects Version/s: | 10.6.0 |
| Fix Version/s: | 10.6 |
| Type: | Bug | Priority: | Major |
| Reporter: | Sergei Petrunia | Assignee: | Rucha Deodhar |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Description |
|
Let's make an intentional mistake and feed JSON_TABLE an invalid JSON:
Then let's try reading
The error text doesn't indicate that the passed JSON was invalid. |
| Comments |
| Comment by Elena Stepanova [ 2021-04-28 ] |
|
There is a lot of inconsistency in validating JSON document argument and the precedence of errors the validation reveals. I tried to summarize some in MDEV-25376, although the JSON doc chosen for the example there isn't optimal. |