-
Notifications
You must be signed in to change notification settings - Fork 4.1k
jsonpath: add like_regex support #143243
Copy link
Copy link
Closed
Labels
A-sql-jsonJSON handling in SQL.JSON handling in SQL.A-sql-pgcompatSemantic compatibility with PostgreSQLSemantic compatibility with PostgreSQLC-enhancementSolution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)T-sql-queriesSQL Queries TeamSQL Queries Team
Description
Currently jsonpath does not support like_regex within predicates during evaluation. Some examples below:
norman=# SELECT jsonb_path_query('{}', 'null like_regex "^he.*$"');
jsonb_path_query
------------------
null
(1 row)
norman=# SELECT jsonb_path_query('{}', '"hello" like_regex "^he.*$"');
jsonb_path_query
------------------
true
(1 row)
norman=# SELECT jsonb_path_query('{}', '"ahello" like_regex "^he.*$"');
jsonb_path_query
------------------
false
(1 row)
Jira issue: CRDB-48721
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
A-sql-jsonJSON handling in SQL.JSON handling in SQL.A-sql-pgcompatSemantic compatibility with PostgreSQLSemantic compatibility with PostgreSQLC-enhancementSolution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)T-sql-queriesSQL Queries TeamSQL Queries Team
Type
Projects
Status
Done