opt: generate inverted index scans for JSON fetch value and containment operators #55318
Labels
C-enhancement
Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)
docs-done
docs-known-limitation
T-sql-queries
SQL Queries Team
CRDB previously generated inverted index scans for queries with filters like
j->'a' @> '{"b": "c"}'
. In order to generate these scans, it relied on normalization rules that converted the filters into JSON containment expressions, with the@>
operator.These normalization rules had to be removed in #55316 because they were found to produce inequivalent expressions. While #55316 re-added some support for index acceleration of filters with the
->
operator, it did not cover this particular type of filter.The text was updated successfully, but these errors were encountered: