-
Notifications
You must be signed in to change notification settings - Fork 616
Parse merge source as table factor #483
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
Parse merge source as table factor #483
Conversation
Some MERGE queries need a table as a soruce, added proper test showing it
source: Box<SetExpr>, | ||
// Specifies alias to the table that is joined with target table | ||
alias: Option<TableAlias>, | ||
source: TableFactor, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mobuchowski What do you think about this change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me -- thank you @mskrzypkows
This PR looks like it has a merge conflict now
FYI I plan to release 0.17.0 tomorrow in case you want to work on this PR before then: #488 |
Pull Request Test Coverage Report for Build 2299529147
💛 - Coveralls |
…_merge_source_as_table_factor
OK, conflicts are resolved |
Thanks @mskrzypkows |
Some MERGE queries need a table as a source (not just a subquery), added proper test showing it
See https://docs.microsoft.com/en-us/sql/t-sql/statements/merge-transact-sql?view=sql-server-ver15 and https://www.postgresql.org/message-id/attachment/23520/sql-merge.html