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

sql: add support for joinReader to be the first join in paired joins #56161

Merged
merged 1 commit into from
Nov 5, 2020

Commits on Nov 5, 2020

  1. sql: add support for joinReader to be the first join in paired joins

    This is to allow lookup joins to be used for left outer/semi/anti
    joins with non-covering indexes. Currently only semi joins for
    this case can use the index (by doing two inner joins and a DistinctOn)
    
    Paired joins with a non-covering index will be used as follows:
    - Left outer join: will become a pair of left outer lookup joins.
    - Left anti join: will be a left outer lookup join followed by
      a left anti lookup join.
    - Left semi join: will be an inner lookup join followed by a
      left semi lookup join.
    
    This PR does not contain the optimizer changes.
    
    Informs cockroachdb#55452
    
    Release note: None
    sumeerbhola committed Nov 5, 2020
    Configuration menu
    Copy the full SHA
    37ed2f4 View commit details
    Browse the repository at this point in the history