Skip to content

Replace ProjectNode::Expression with RowExpression step 1#12618

Closed
cemcayiroglu wants to merge 2 commits intoprestodb:masterfrom
cemcayiroglu:project_nodev2
Closed

Replace ProjectNode::Expression with RowExpression step 1#12618
cemcayiroglu wants to merge 2 commits intoprestodb:masterfrom
cemcayiroglu:project_nodev2

Conversation

@cemcayiroglu
Copy link
Contributor

No description provided.

@cemcayiroglu cemcayiroglu changed the title Project nodev2 Replace ProjectNode::Expression with RowExpression step-1 Apr 8, 2019
@cemcayiroglu cemcayiroglu requested review from highker and rongrong April 8, 2019 21:59
@cemcayiroglu cemcayiroglu changed the title Replace ProjectNode::Expression with RowExpression step-1 Replace ProjectNode::Expression with RowExpression step 1 Apr 8, 2019
subPlan.getTranslations().put(inPredicate, inPredicateSubquerySymbol);

return appendApplyNode(subPlan, inPredicate, subqueryPlan.getRoot(), Assignments.of(inPredicateSubquerySymbol, inPredicateSubqueryExpression), correlationAllowed);
return appendApplyNode(subPlan, inPredicate, subqueryPlan.getRoot(), Assignments.of(inPredicateSubquerySymbol, castToRowExpression(inPredicateSubqueryExpression)), correlationAllowed);
Copy link

Choose a reason for hiding this comment

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

Usually we do the cast at the very last step when replacing expressions. This will force us to build all the necessary infra for RowExpression then start a one-time migration. It would be cleaner and easier to revert.

@highker
Copy link

highker commented May 20, 2019

superseded by #12747

@highker highker closed this May 20, 2019
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.

3 participants