airflow-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Riccomini (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AIRFLOW-1214) BigQuery hook fail to convert scientific notation string into int
Date Thu, 18 May 2017 18:14:04 GMT

    [ https://issues.apache.org/jira/browse/AIRFLOW-1214?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16016187#comment-16016187
] 

Chris Riccomini commented on AIRFLOW-1214:
------------------------------------------

This seems like a bug with the Python client. Looking at the INTEGER type in BQ, it's 64 bit
signed, just like Python. sys.maxint has 9223372036854775807 in Python, which is the same
max value. Not sure why they'd return scientific notation.

> BigQuery hook fail to convert scientific notation string into int
> -----------------------------------------------------------------
>
>                 Key: AIRFLOW-1214
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-1214
>             Project: Apache Airflow
>          Issue Type: Bug
>          Components: gcp, hooks
>         Environment: Python 2.7.12
> Ubuntu 16.04
>            Reporter: Richard Lee
>            Assignee: Richard Lee
>
> BigQuery sometimes returns integer result like "8.833167174e+11", which will cause conversion
error in Python.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message