Skip to content

[CALCITE-7661] RelDecorrelator loses shared correlation constraint across inner join inputs#5111

Open
darpan-e6 wants to merge 3 commits into
apache:mainfrom
darpan-e6:CALCITE-7661
Open

[CALCITE-7661] RelDecorrelator loses shared correlation constraint across inner join inputs#5111
darpan-e6 wants to merge 3 commits into
apache:mainfrom
darpan-e6:CALCITE-7661

Conversation

@darpan-e6

Copy link
Copy Markdown
Contributor

Jira Link

CALCITE-7661

Changes Proposed

  • Preserve the equality between shared correlation columns when decorrelating inner join inputs.
  • Add regression coverage for the generated plan and query result.

newLeftFrame.r, newRightFrame.r, relBuilder);
joinConditions.addAll(conds);
}
joinConditions.addAll(

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A little comment here why this is done unconditionally may help maintain this.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the review. Added a comment for the same.

@mihaibudiu mihaibudiu added the LGTM-will-merge-soon Overall PR looks OK. Only minor things left. label Jul 20, 2026
@sonarqubecloud

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

LGTM-will-merge-soon Overall PR looks OK. Only minor things left.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants