Azure / Azure/azure-documentdb-java

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

未关闭
#102 4 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Java
星标
51
派生
52
PR 合并指标
30 天内没有已合并 PR

描述

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?

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。