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: Clean up in query filter to partition key detection #20762

Merged
merged 1 commit into from
Apr 27, 2020

Conversation

smitpatel
Copy link
Contributor

No description provided.

@@ -1030,127 +1011,82 @@ protected override ShapedQueryExpression TranslateWhere(ShapedQueryExpression so

return null;

static (Expression predicateExpression, IProperty partitionKeyProperty, Expression partitionKeyValueExpression)
ExtractPartitionKey(Expression expression, IEntityType entityType)
Expression TryExtractPartitionKey(Expression expression, IEntityType entityType, out Expression updatedPredicate)
Copy link
Member

Choose a reason for hiding this comment

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

You can return early if entityType.GetPartitionKeyPropertyName() is null

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.

2 participants