Skip to content

Commit

Permalink
fix system test
Browse files Browse the repository at this point in the history
  • Loading branch information
Linchin committed Aug 15, 2024
1 parent a400f6f commit 12d18c0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion google/cloud/firestore_v1/aggregation.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,11 @@ def _make_stream(
metrics = response.explain_metrics

result = _query_response_to_result(response)
yield result
if len(result) > 0 or metrics is None:
# When explain_options.analyze == False, the query isn't run
# but query profiling results are returned. In this case we
# do not yield an empty result.
yield result

return metrics

Expand Down

0 comments on commit 12d18c0

Please sign in to comment.