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

Cosmos: Add embedded collection support #16631

Merged
merged 1 commit into from
Jul 19, 2019
Merged

Conversation

AndriySvyryd
Copy link
Member

@AndriySvyryd AndriySvyryd commented Jul 17, 2019

Flatten out shaper expression visitors
Don't expand owned collection

Fixes #16620
Part of #12086

@AndriySvyryd AndriySvyryd force-pushed the CosmosCollections branch 2 times, most recently from 67a8e0f to ce9357e Compare July 17, 2019 07:21
@AndriySvyryd
Copy link
Member Author

@smitpatel Updated and rebased

Expression.MakeMemberAccess(entry, _entityTypeMemberInfo))),
MaterializeEntity(entityType, materializationContextVariable, concreteEntityTypeVariable, instanceVariable))));
Expression.MakeMemberAccess(entryVariable, _entityTypeMemberInfo)),
Expression.Assign(instanceVariable, Expression.Convert(
Copy link
Contributor

Choose a reason for hiding this comment

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

Any significance of different ordering now?

Copy link
Member Author

Choose a reason for hiding this comment

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

Consistency. The other blocks end with the instance.

Expression.MakeMemberAccess(entryVariable, _entityMemberInfo),
entityType.ClrType))),
MaterializeEntity(
entityType, materializationContextVariable, concreteEntityTypeVariable, instanceVariable, entryVariable))));
Copy link
Contributor

Choose a reason for hiding this comment

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

How are we using entry variable

Copy link
Member Author

Choose a reason for hiding this comment

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

To set IsLoaded later

return new ProjectionBindingExpression(
_selectExpression, _selectExpression.AddToProjection(translation), expression.Type);
}
//return _selectExpression.AddCollectionProjection(
Copy link
Contributor

Choose a reason for hiding this comment

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

Should remove commented code

Copy link
Member Author

Choose a reason for hiding this comment

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

But we'll need it for non-cross-partition joins

Copy link
Contributor

@smitpatel smitpatel left a comment

Choose a reason for hiding this comment

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

:shipit:

Flatten out shaper expression visitors
Don't expand owned collection

Fixes #16620
Part of #12086
@AndriySvyryd AndriySvyryd merged commit 7d4b425 into master Jul 19, 2019
@ghost ghost deleted the CosmosCollections branch July 19, 2019 01:01
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.

Nav Expansion: Owned collections are expanded
2 participants