dlackty commented on a change in pull request #2306: [AIRFLOW-1214] Fix
conversion of int type in BigQueryHook
URL: https://github.com/apache/incubator-airflow/pull/2306#discussion_r240502685
##########
File path: airflow/contrib/hooks/bigquery_hook.py
##########
@@ -915,7 +915,7 @@ def _bq_cast(string_field, bq_type):
if string_field is None:
return None
elif bq_type == 'INTEGER' or bq_type == 'TIMESTAMP':
- return int(string_field)
+ return int(float(string_field))
Review comment:
@Fokko & @tswast for some reason I didn't see your comments. I'll open
another PR for this.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services