Skip to content

[CALCITE-7936] Top-down decorrelator should avoid redundant domain joins for nested LATERAL queries - #5412

Open
xiedeyantu wants to merge 1 commit into
apache:mainfrom
xiedeyantu:CALCITE-7936
Open

xiedeyantu wants to merge 1 commit into
apache:mainfrom
xiedeyantu:CALCITE-7936

Conversation

@xiedeyantu

Copy link
Copy Markdown
Member

When the left input of a nested INNER Correlate is independent of the outer correlation variables, carry the outer domain only through the right input. Remove the redundant domain join on the left and update join conditions and output mappings accordingly.

Verify the simplified plan with a plan snapshot and cover duplicate rows and NULL correlation keys with execution tests.

Jira Link

CALCITE-7936

Changes Proposed

See CALCITE-7936

…ins for nested LATERAL queries

When the left input of a nested INNER Correlate is independent of the
outer correlation variables, carry the outer domain only through the
right input. Remove the redundant domain join on the left and update
join conditions and output mappings accordingly.

Verify the simplified plan with a plan snapshot and cover duplicate rows
and NULL correlation keys with execution tests.

Signed-off-by: xiedeyantu <czjourney@163.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant