-
-
Notifications
You must be signed in to change notification settings - Fork 210
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
Pushing AsOf
expressions down to tables used in unions and subqueries in view definitions
#1159
Conversation
…atements in views, since they don't automatically get included since Union is an Opaque node.
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.
LGTM, just a small simplification.
Also could use an engine test, check out TestVersionedViews
Actually you probably want |
…queries and to recurse into subqueries' node trees to set the AsOf expression for any referenced tables.
AsOf
expressions down to tables used in unions in a view definitionAsOf
expressions down to tables used in unions and subqueries in view definitions
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.
LGTM!
Tables used in unions and subqueries in a view definition weren't getting updated with an
asof
expression when one was used on the view. This PR extends the resolve_views analyzer rule to close those gaps.Fixes: dolthub/dolt#4011
Added Dolt enginetests, too: dolthub/dolt#4028