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 May 6, 2026. It is now read-only.
@utils.positional(2)
def fetch_page_async(self, page_size, **kwargs):
"""Fetch a page of results.
This is the asynchronous version of :meth:`Query.fetch_page`.
Returns:
tasklets.Future: See :meth:`Query.fetch_page` for eventual result.
"""
# Avoid circular import in Python 2.7
from google.cloud.ndb import _datastore_query
_options = kwargs["_options"]
if _options.filters and _options.filters._multiquery:
raise TypeError(
"Can't use 'fetch_page' or 'fetch_page_async' with query that "
"uses 'OR', '!=', or 'IN'."
)
iterator = _datastore_query.iterate(_options, raw=True)
results = []
cursor = None
while (yield iterator.has_next_async()):
result = iterator.next()
results.append(result.entity())
cursor = result.cursor
more = results and (
> iterator._more_results_after_limit or iterator.probably_has_next()
)
E AttributeError: '_PostFilterQueryIteratorImpl' object has no attribute '_more_results_after_limit'
It occurs when querying for multiple properties in the StructuredProperty. I think it's equivalent to an OR query, which is not supported.
Querying for only one property in a StrucuturedProperty works fine.
Here is error output.
It occurs when querying for multiple properties in the StructuredProperty. I think it's equivalent to an
ORquery, which is not supported.Querying for only one property in a StrucuturedProperty works fine.