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

Simplify planning of MERGE #23684

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Commits on Oct 5, 2024

  1. Simplify planning of MERGE

    Currently, the planner inserts a projection of the following shape
    to assemble the merged row:
    
        merge_row := (
            CASE
                WHEN ... THEN
                    ROW(..., $not((present IS NULL)), <operation>, 0)
                WHEN ... THEN
                    ROW(..., $not((present IS NULL)), <operation>, 1)
                ...
                ELSE
                    ROW(<nulls>, $not((present IS NULL)), -1, -1)
            END)
    
    This change replaces the ELSE branch to return a single null instead of a synthetic
    value with nulls. By reducing the size of the projection, it allows for wider
    tables to be used with MERGE.
    martint committed Oct 5, 2024
    Configuration menu
    Copy the full SHA
    ca494af View commit details
    Browse the repository at this point in the history