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

New Query Pipeline #14455

Merged
merged 2 commits into from
May 2, 2019
Merged

New Query Pipeline #14455

merged 2 commits into from
May 2, 2019

Conversation

smitpatel
Copy link
Contributor

@smitpatel smitpatel commented Jan 17, 2019

What works:
Non-collection queries
Sync/Async
InMemory/Sqlite/SqlServer
Method/Member translators
Spatial

What does not work:
Cosmos provider - Tests are skipped in normal run so will fix later
Collection queries - Includes/Correlated Subquery is not implemented yet
Subquery lifting - Was dependent on nav rewrite
A lot of small optimizations in expression tree/generated Sql
Null semantics
TPH
Broader list at #14630

Notes:
Old files are not deleted yet. (keeping them for reference for now)
Still target NS2.0
Class names/namespaces are not final.
Doc comments missing

@smitpatel smitpatel force-pushed the smit/query branch 3 times, most recently from c030039 to b416870 Compare February 23, 2019 03:23
@smitpatel smitpatel force-pushed the smit/query branch 2 times, most recently from 19bf245 to dcdeadf Compare March 1, 2019 00:34
@smitpatel smitpatel force-pushed the smit/query branch 3 times, most recently from 932d624 to 1efef34 Compare March 11, 2019 19:02
@benmccallum
Copy link
Contributor

#14971 cross-linking so I can see over there easily when this PR is merged.

@smitpatel smitpatel force-pushed the smit/query branch 3 times, most recently from 4067e2e to cabd484 Compare March 22, 2019 00:02
@smitpatel smitpatel mentioned this pull request Apr 24, 2019
@smitpatel smitpatel force-pushed the smit/query branch 2 times, most recently from 1dba152 to 9aeb6b3 Compare April 30, 2019 17:42
@smitpatel smitpatel changed the title [WIP] New Query Pipeline New Query Pipeline Apr 30, 2019
@smitpatel
Copy link
Contributor Author

This is ready for review.
I am in process of disabling failing tests (or fix them if easy win). Once this is in, it would be easier to work in smaller chunks

src/EFCore.Relational/Query/PipeLine/QuerySqlGenerator.cs Outdated Show resolved Hide resolved
var isLeftNull = sqlBinary.Left is SqlConstantExpression leftConstant && leftConstant.Value == null;
var isRightNull = sqlBinary.Right is SqlConstantExpression rightConstant && rightConstant.Value == null;

if (isLeftNull || isRightNull)
Copy link
Contributor

Choose a reason for hiding this comment

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

this wont for for case where both values are null - those would be optimized at some point, so I guess its fine to leave this as is

Visit(
hasNullValue
? (Expression)new SqlUnaryExpression(
ExpressionType.Equal, inExpression.Item, inExpression.Type, inExpression.TypeMapping)
Copy link
Contributor

Choose a reason for hiding this comment

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

creative re-use of existing assets ;)

@smitpatel
Copy link
Contributor Author

Addressed feedback and disabled all failing tests. Build should be passing.

smitpatel added 2 commits May 1, 2019 18:07
What works:
Non-collection queries
Sync/Async
InMemory/Sqlite/SqlServer
Method/Member translators
Spatial

What does not work:
Cosmos provider - Tests are skipped in normal run so will fix later
Collection queries - Includes/Correlated Subquery is not implemented yet
Subquery lifting - Was dependent on nav rewrite
A lot of small optimizations in expression tree/generated Sql
Null semantics
TPH
Broader list at #14630

Notes:
Old files are not deleted yet. (keeping them for reference for now)
Still target NS2.0
Class names/namespaces are not final.
Doc comments missing
@maumar
Copy link
Contributor

maumar commented May 2, 2019

:shipit:
design looks good, we will clean it up and iron out the kinks in small chunks

@smitpatel smitpatel merged commit b69900c into master May 2, 2019
@ghost ghost deleted the smit/query branch May 2, 2019 18:38
using System.Linq.Expressions;
using Microsoft.EntityFrameworkCore.Internal;

namespace Microsoft.EntityFrameworkCore.Query.Pipeline
Copy link
Member

Choose a reason for hiding this comment

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

Why the folder is PipeLine and not Pipeline? 😭

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Rename went bad. I will correct it to please unicorns.

Copy link
Member

Choose a reason for hiding this comment

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

Yes this was a major issue hurting my eyes as well.

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.

5 participants