[MDEV-13594] Support for JSON operators column->path and column->>path Created: 2017-08-20 Updated: 2023-02-28 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | compat80, JSON |
| Fix Version/s: | None |
| Type: | Task | Priority: | Minor |
| Reporter: | Илья Индиго | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 12 |
| Labels: | None | ||
| Issue Links: |
|
||||||||||||||||
| Description |
|
Function JSON_EXTRACT() in MariaDB 10.2.x don't support column->path and column->>path operators that are supported in MySQL since version 5.7.13. More details about syntax and examples here. It work and in MySQL and in MariaDB.
It work only in MySQL.
https://dev.mysql.com/doc/refman/5.7/en/json-search-functions.html#operator_json-column-path Because of this issue, I can't transparent migrate all my projects from MySQL to MariaDB. |
| Comments |
| Comment by Elena Stepanova [ 2017-08-20 ] |
|
That's right, JSON operators are not implemented, MariaDB has never claimed otherwise. I can convert it into a feature request, since I can't find an existing one. |
| Comment by Илья Индиго [ 2017-08-20 ] |
|
> a feature request Поправьте меня, пожалуйста, если я в чём-то ошибаюсь. В принципе мне не важно чем это будет считаться тут багом или запросом на фичу, лишь бы к этому отнеслись серьёзно и реализовали как можно скорее. P.S. Извините, что на русском, но я смотрю тут преимущественно везде русские имена и фамилии, а с английским у меня плоховато и мне очень трудно переводить на английский язык сложно составленные предложения. |
| Comment by Elena Stepanova [ 2017-08-20 ] |
MariaDB isn't positioning itself as a drop-in replacement for MySQL anymore, ever since 10.x release line.
While MariaDB still makes some effort to support MySQL functionality which is deemed valuable, supporting everything is definitely not the most important goal.
That's not quite true. 10.2 only declares (and implements) support of JSON functions. In latest versions an alias for JSON type was added for easier migration of MySQL data dumps, but that's still not the same JSON data type as in MySQL and is not declared as such. greenman, could you please add a note somewhere there about the absence of JSON operators in 10.2?
While we do have a significant number of Russian-speaking people in the company, it is still far from majority; but much more importantly, JIRA is very essentially is a community-oriented tool, and the vast majority of our community does not speak Russian (and yes, for the most of them English is not a native language, either). So, while it is naturally an extra effort to write in English, please try to make it as a courtesy to everyone who will have to read your comments. Nobody will hold it against you if it's not perfect. |
| Comment by Ian Gilfillan [ 2017-08-21 ] |
|
I've added a specific mention about the JSON operators on https://mariadb.com/kb/en/mariadb/mariadb-vs-mysql-compatibility/#incompatibilities-between-mariadb-102-and-mysql-57 |
| Comment by Diego Dupin [ 2018-10-08 ] |
|
sequelize (equivalent of hibernate for node.js = 200K DL per week) use that as a basis for MySQL/MariaDB, failing with MariaDB. |
| Comment by Sergei Golubchik [ 2020-05-05 ] |
|
we actually want to do it. but it is 1) not a very high priority issue, as it's just a syntax sugar, 2) it would behave differently from MySQL, even if we'll get some syntax sugar, we don't want to have a bad syntax sugar. The point of a syntax sugar is to eliminate as much of the repetitive bolierplate code as possible and to have as simple and naturally looking syntax as possible. |