[MDEV-25727] Add formatted column support to JSON_TABLE Created: 2021-05-19 Updated: 2022-12-04 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | JSON |
| Fix Version/s: | None |
| Type: | Task | Priority: | Major |
| Reporter: | markus makela | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||
| Description |
|
The SQL standard defines the following types for the column definition of a JSON_TABLE clause:
All types except the formatted ones are already implemented in 10.6.0 and the only one left out is formatted columns:
Adding at least the minimal implementation of the FORMAT JSON clause would already help greatly when using JSON_TABLE with JSON objects with deeply nested JSON values. If implemented, I would expect it to behave as follows:
The expected result:
Currently this can be emulated using JSON_QUERY and an ordinality column but the syntax is quite uncomfortable to use:
|
| Comments |
| Comment by Christian Proust [ 2022-12-02 ] |
|
Does it not duplicate |
| Comment by Sergei Golubchik [ 2022-12-04 ] |
|
no, this is about adding support for a FORMAT clause, as specified in the SQL standard |