Skip to content

Commit

Permalink
Fix data type conversion issue in QueryResultResource for big ints
Browse files Browse the repository at this point in the history
  • Loading branch information
mirkan1 committed Apr 16, 2024
1 parent d3f574e commit 363753f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions redash/handlers/query_results.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,11 @@ def get(self, query_id=None, query_result_id=None, filetype="json"):

if query_result_id:
query_result = get_object_or_404(models.QueryResult.get_by_id_and_org, query_result_id, self.current_org)
for i in query_result.data['rows']:
for j in i.items():
value = j[1]
if isinstance(value, int):
i[j[0]] = str(value)

if query_id is not None:
query = get_object_or_404(models.Query.get_by_id_and_org, query_id, self.current_org)
Expand Down

0 comments on commit 363753f

Please sign in to comment.