Skip to content

Cosmos: Warn when the partition key is given via both WithPartitionKey() and the predicate #34194

Open

Description

We support two ways to specify the partition key: via WithPartitionKey() and via the predicate (Where).

The user may use both means in the same query; either the values are uselessly repeated (the query should be cleaned up), or worse, they're not, and then the query is guaranteed to never return any results. We can warn about this case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions