Azure / Azure/azure-documentdb-java

Continuation and requestCharge missing with options.setEnableCrossPartitionQuery(true);

Open
#102 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
51
Forks
52
PR merge metrics
No merged PRs in 30d

Description

I'm trying to use continuations against a partitioned cosomosdb.

I've noticed that queries that hit multiple partitions will fail with
> Cross partition query is required but disabled

In these cases its possible to use options.setEnableCrossPartitionQuery(true) and the query returns.

However for cross partition queries I see that feedResponse.getResponseContinuation() returns null and feedResponse.getRequestCharge() is 0.0.

It's then not possible to page to as there is no continuation token. Also I'd expect the requestCharge to be the sum of all the paritition charges.

Is this a bug or a limitation?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.