You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 30, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 30, 2026. It is now read-only.
@schmidt-sebastian As per my research i think python supports DocumentSnapshot-based cursors, but the confusion is just because of naming convention, will update the name of the parameter so it could minimize the confusion.Let me know if i misunderstood anything or missing something.
@HemangChothani Sorry, I missed this completely. Would it be possible to rename document_fields? That name caught my eyes and I immediately thought Python does not support these cursors.
The reason I looked at this was to figure out whether the Python SDK considers "IN" filters to be equality cursors. I am not able to decipher the code to provide an answer (
). Only the operations GREATER_THAN, GREATER_THAN_OR_EQUALS, LESS_THAN or LESS_THAN_OR_EQUALS should be used to compute the implicit cursor. See also the fix here: googleapis/java-firestore#216. Do we need to port this fix?
I think "IN" filter is not considered as a equality cursors. If i compare the python code it is similar to the old java code, but still need a conformation.
This line is not going to execute for == and array_contains operator.
@schmidt-sebastian I thinks this issue is resolved and only the operations GREATER_THAN, GREATER_THAN_OR_EQUALS, LESS_THAN or LESS_THAN_OR_EQUALS should be used to compute the implicit cursor.
As we can see here:
Activity
HemangChothani commentedon Jun 5, 2020
@schmidt-sebastian As per my research i think python supports
DocumentSnapshot-based cursors, but the confusion is just because of naming convention, will update the name of the parameter so it could minimize the confusion.Let me know if i misunderstood anything or missing something.python-firestore/google/cloud/firestore_v1/query.py
Line 460 in b1c5987
python-firestore/google/cloud/firestore_v1/query.py
Lines 475 to 480 in b1c5987
schmidt-sebastian commentedon Jun 5, 2020
@HemangChothani Sorry, I missed this completely. Would it be possible to rename
document_fields? That name caught my eyes and I immediately thought Python does not support these cursors.The reason I looked at this was to figure out whether the Python SDK considers "IN" filters to be equality cursors. I am not able to decipher the code to provide an answer (
python-firestore/google/cloud/firestore_v1/query.py
Line 627 in b1c5987
HemangChothani commentedon Jun 8, 2020
@schmidt-sebastian Yes, I have opened a PR #58
I think "IN" filter is not considered as a equality cursors. If i compare the python code it is similar to the old java code, but still need a conformation.
This line is not going to execute for
==andarray_containsoperator.python-firestore/google/cloud/firestore_v1/query.py
Lines 636 to 637 in b1c5987
For better view i think need to concern @crwilcox
HemangChothani commentedon Jun 29, 2020
@crwilcox Any suggestion on
Python SDK considers "IN" filters to be equality cursors?fix: name parameter to indicate snapshot support (#169)
HemangChothani commentedon Sep 2, 2020
@schmidt-sebastian I thinks this issue is resolved and only the operations GREATER_THAN, GREATER_THAN_OR_EQUALS, LESS_THAN or LESS_THAN_OR_EQUALS should be used to compute the implicit cursor.
As we can see here:
python-firestore/google/cloud/firestore_v1/base_query.py
Lines 682 to 689 in be98897
so closing this issue for now, feel free to reopen if it doesn't fulfill the requirements.
schmidt-sebastian commentedon Sep 8, 2020
Sounds good. Thanks for clarifying and sorry for the confusion.