Skip to content

Replace Assignments::Expression with RowExpression#12715

Closed
highker wants to merge 6 commits intoprestodb:masterfrom
highker:proj
Closed

Replace Assignments::Expression with RowExpression#12715
highker wants to merge 6 commits intoprestodb:masterfrom
highker:proj

Conversation

@highker
Copy link

@highker highker commented Apr 23, 2019

No dependency

@highker highker force-pushed the proj branch 2 times, most recently from 7921b3a to f912747 Compare April 25, 2019 04:51
@highker
Copy link
Author

highker commented Apr 26, 2019

Hand over to @hellium01 to finish the patch


Map<String, ColumnHandle> columns = metadata.getColumnHandles(session, insert.getTarget());
Assignments.Builder assignments = Assignments.builder();
AssignmentsUtils.Builder assignments = AssignmentsUtils.builder();
Copy link
Contributor

Choose a reason for hiding this comment

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

I'd call this AssignmentBuilder if it's in AssignmentUtils. And you can pretty much static import that.

List<Symbol> outputSymbols = node.getOutputSymbols();

return visitScanFilterAndProject(context, node.getId(), sourceNode, Optional.of(filterExpression), Assignments.identity(outputSymbols), outputSymbols);
return visitScanFilterAndProject(context, node.getId(), sourceNode, Optional.of(filterExpression), AssignmentsUtils.identity(outputSymbols), outputSymbols);
Copy link
Contributor

Choose a reason for hiding this comment

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

why not change to static import

.build();
}

public static Assignments of()
Copy link
Contributor

Choose a reason for hiding this comment

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

These name should be changed if they are no longer in the Assignments class. It's ok to call the static creator of, but that's really strange from another class. I don't know what to call them though.

@highker
Copy link
Author

highker commented May 1, 2019

superseded by #12747

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants