-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
[Export Database] Produce up-to-date query for ViewCatalogEntry #9375
Conversation
Thanks for the PR! Perhaps it makes sense to, instead of introducing an extra list of aliases ( |
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.
Thanks for the changes! Looks good - two more comments:
Thanks! LGTM |
This PR fixes #9367
We regenerate the
sql
when ToSQL() is called, this is different from before in that all names are provided as explicit aliases.This is done because name changes of the referenced table is not reflected in the view anyways, so it's fine to just record the names at the time of creation.
This behavior (not letting changes to the referenced query impact the names of the view) is copied from PostgreSQL