[MDEV-22289] JSON_TABLE: Some types for regular columns are not supported by parser Created: 2020-04-18  Updated: 2020-06-05  Resolved: 2020-06-05

Status: Closed
Project: MariaDB Server
Component/s: JSON, Parser
Affects Version/s: N/A
Fix Version/s: N/A

Type: Bug Priority: Major
Reporter: Elena Stepanova Assignee: Alexey Botchkov
Resolution: Fixed Votes: 1
Labels: None

Issue Links:
Relates
relates to MDEV-17399 Add support for JSON_TABLE Closed

 Description   

As far as I can tell, there is no limitation in the documentation (standard or MySQL) on data types for regular columns, apart from it being a scalar type. However, some types are not supported by MariaDB implementation:

bb-10.5-hf 6dfb3fab2

select * from json_table('{"a":"b"}',"$" columns(a text path '$.a')) foo;
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'text path '$.a')) foo' at line 1

MySQL 8.0.19

select * from json_table('{"a":"b"}',"$" columns(a text path '$.a')) foo;
+------+
| a    |
+------+
| b    |
+------+
1 row in set (0.001 sec)

Same for at least BLOB and GEOMETRY type. The list is not complete.


Generated at Thu Feb 08 09:13:37 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.