Skip to content

[CALCITE-3847] Decorrelation for join with lateral table outputs wron… - #1850

Merged
danny0405 merged 1 commit into
apache:masterfrom
danny0405:CALCITE-3847
Mar 10, 2020
Merged

[CALCITE-3847] Decorrelation for join with lateral table outputs wron…#1850
danny0405 merged 1 commit into
apache:masterfrom
danny0405:CALCITE-3847

Conversation

@danny0405

Copy link
Copy Markdown
Contributor

…g plan if the join condition contains correlation variables

…g plan if the join condition contains correlation variables
return decorrelateRel((RelNode) rel);
}

public Frame decorrelateRel(LogicalTableFunctionScan rel) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This class also contains methods for non-logical rel nodes, for example, decorrelateRel(Filter rel). Should be TableFunctionScan there instead of LogicalTableFunctionScan to ensure that this issue wouldn't be reproduced for other implementations of TableFunctionScan?

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.

Decoration should only happen for logical nodes, we keep node Filter only for compatibility with old version Calcite.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Ok, thanks for the explanation.

@danny0405
danny0405 merged commit 8d4820f into apache:master Mar 10, 2020
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.

2 participants