Skip to content

Commit

Permalink
fix: jans-linux-setup conversion fails for null integer field (#3610)
Browse files Browse the repository at this point in the history
  • Loading branch information
devrimyatar authored Jan 12, 2023
1 parent e4d1d0c commit 207946c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ def get_dict_data(self, sql_cmd):
for row in result['rows']:
row_data = {}
for i, field in enumerate(result.get('metadata', {}).get('rowType', {}).get('fields', [])):
row_data[field['name']] = int(row[i]) if field['type']['code'] == 'INT64' else row[i]
row_data[field['name']] = int(row[i]) if row[i] and field['type']['code'] == 'INT64' else row[i]
data.append(row_data)

return data
Expand Down

0 comments on commit 207946c

Please sign in to comment.