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

Query: Lift Subqueries when outer QM's select can be pushed down into… #7843

Merged
merged 1 commit into from
Mar 11, 2017

Conversation

smitpatel
Copy link
Contributor

… subqueryQM

Apply QueryOptimizer recursively on all QueryModels
Introduce SubQueryExpressionVisitor to apply QMV's recursively. @maumar

Partially fix #7831

protected override Expression VisitSubQuery(SubQueryExpression expression)
{
TransformingVisitor.VisitQueryModel(expression.QueryModel);
return expression;
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: add newline before return

Copy link
Contributor Author

Choose a reason for hiding this comment

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

thanks for reminding, it should be changed to base visitor actually.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

And base returns expression only. :trollface:

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@maumar - Decide what you want? return Expression or call base? 😛

Copy link
Contributor

Choose a reason for hiding this comment

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

call base is "more correct" ;)

@smitpatel
Copy link
Contributor Author

@maumar - Updated.
I will submit changes to ExpressionVisitorBase in separate PR.

@smitpatel smitpatel force-pushed the queryoptimizer branch 3 times, most recently from 01208a8 to 8b2f7cd Compare March 10, 2017 22:44
… subqueryQM

Apply QueryOptimizer recursively on all QueryModels
Introduce SubQueryExpressionVisitor<IQueryModelVisitor> to apply QMV's recursively.
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.

3 participants