Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows and Joins work when columns have alias #1087

Merged
merged 2 commits into from
Sep 23, 2021
Merged

Conversation

amytai
Copy link
Contributor

@amytai amytai commented Sep 22, 2021

Also make sure that columns in the DDlog output relation appear in the same order as in the original SQL create statement.

Signed-off-by: Amy Tai [email protected]

Also make sure that columns in the DDlog output relation appear in the same order as in the original SQL create statement.

Signed-off-by: Amy Tai <[email protected]>
sql/src/test/java/ddlog/WindowTest.java Outdated Show resolved Hide resolved
// created by this Visitor.
if (scOrigCol.getExpression().equals(sc.getExpression())) {
Expression repl = subst.rewrite(sc.getExpression(), null);
Expression repl1 = dropTable.rewrite(repl, null);

Choose a reason for hiding this comment

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

maybe we should rename the 'dropTable' variable as 'dropTableSpecRewriter' or something like that.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

How about dropTableExprRewriter?

@amytai amytai requested a review from mihaibudiu September 23, 2021 00:12
@mihaibudiu mihaibudiu merged commit 70005b7 into vmware:master Sep 23, 2021
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