You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sql/jsonpath: validate JSON column in jsonb_path_exists for inverted index acceleration
Informs: #154729
Previously, the jsonb_path_exists function would attempt inverted index
acceleration even when the JSON parameter referenced a column that was not
the source column of the inverted index, or when it was a constant JSON
value. This resulted in incorrect query plans and potentially wrong results.
This commit adds proper validation to ensure that inverted index acceleration
is only used when the JSON parameter is a variable expression that references
the actual source column of the inverted index. For all other cases, the
query will fall back to a full table scan with post-filtering.
Release note: None
0 commit comments