Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

opt: index accelerate chained fetch value operators #59494

Merged
merged 2 commits into from
Jan 29, 2021

Commits on Jan 29, 2021

  1. opt: add test for JSON fetch val inverse

    Release note: None
    mgartner committed Jan 29, 2021
    Configuration menu
    Copy the full SHA
    687a1b7 View commit details
    Browse the repository at this point in the history
  2. opt: index accelerate chained fetch value operators

    Prior to cockroachdb#55316, the optimizer generated inverted index scans on indexed
    JSON columns when queries had filters with chained fetch value
    operators, for example `j->'a'->'b' = '1'`. The logic that made this
    possible was found to create query plans not equivalent to the query, so
    it was removed. This commit restores the ability to index accelerate
    chained -> operators.
    
    Fixes cockroachdb#55317
    
    Release note (performance improvement): A bug fix included in 20.2.1 for
    for the JSON fetch value operator, `->`, resulted in chained `->`
    operators in query filters not being index accelerated, e.g.,
    `j->'a'->'b' = '1'`. Chained `->` are now index accelerated.
    mgartner committed Jan 29, 2021
    Configuration menu
    Copy the full SHA
    0bbcced View commit details
    Browse the repository at this point in the history