totalRows are returned as a string and should be a number (#4481)

This commit is contained in:
Omer Lachish
2019-12-24 22:20:17 +02:00
committed by GitHub
parent 6b2f23f357
commit c3299ff0ad

View File

@@ -205,7 +205,7 @@ class BigQuery(BaseQueryRunner):
rows = []
while ("rows" in query_reply) and current_row < query_reply["totalRows"]:
while ("rows" in query_reply) and current_row < int(query_reply["totalRows"]):
for row in query_reply["rows"]:
rows.append(transform_row(row, query_reply["schema"]["fields"]))