Skip to content

New Query Pipeline - #14455

Merged
smitpatel merged 2 commits into
masterfrom
smit/query
May 2, 2019
Merged

smitpatel merged 2 commits into
masterfrom
smit/query

Conversation

@smitpatel

@smitpatel smitpatel commented Jan 17, 2019 •

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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
Copy Markdown
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

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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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

maumar commented May 2, 2019

Copy link
Copy Markdown
Contributor

: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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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