Skip to content

Commit

Permalink
totalRows are returned as a string and should be a number (#4481)
Browse files Browse the repository at this point in the history
  • Loading branch information
Omer Lachish authored Dec 24, 2019
1 parent 6b2f23f commit c3299ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion redash/query_runner/big_query.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ def _get_query_result(self, jobs, query):

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"]))

Expand Down

0 comments on commit c3299ff

Please sign in to comment.