Azure / Azure/azure-documentdb-java

Non null ContinuationToken json but null token value

Offen
#119 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Java
Sterne
51
Forks
52
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

When querying with pagination for partitioned collection, for the last page, the pagination token is not null, but the token field is null. e.g.,

```json
{"token":null,"range":{"max":"05C1D9CD673398","min":"05C1C9CD673398","isMinInclusive":true,"isMaxInclusive":false}}
```

Does above token indicate it's already the last page? Though in my case, it's actually the last page, besides the whole json itself is not null.

Similar issue here:
https://stackoverflow.com/a/51868733

The explanation was:
_"As for why the SDK does not just give a json null value for the continuation token: The SDK has reached the end for a given partition but mstill needs to visit other partitions to know for sure that there are no more documents that match your filter / need to be returned to the client."_

But it's unclear whether should the user treat this as last page. @aliuy
Any help?

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.