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

release-22.1: opt: fix bug with incorrect results produced by paired left lookup join #82076

Merged
merged 1 commit into from
May 30, 2022

Commits on May 30, 2022

  1. opt: fix bug with incorrect results produced by paired left lookup join

    Prior to this patch, it was possible for a paired join to produce incorrect
    results for a left lookup join. In particular, some output rows had
    non-NULL values for right-side columns when the right-side columns should
    have been NULL.
    
    This commit fixes the issue by updating the optimizer to ensure that
    only columns from the second join in the paired join (the index join)
    are projected, not columns from the first (the lookup join).
    
    Fixes cockroachdb#81968
    
    Release note (bug fix): Fixed an issue where a left lookup join could
    have incorrect results. In particular, some output rows could have non-NULL
    values for right-side columns when the right-side columns should
    have been NULL. This issue only exists in 22.1.0 and prior development
    releases of 22.1.
    rytaft committed May 30, 2022
    Configuration menu
    Copy the full SHA
    67893af View commit details
    Browse the repository at this point in the history