[ 
https://issues.apache.org/jira/browse/BEAM-5186?focusedWorklogId=137527&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-137527
 ]

ASF GitHub Bot logged work on BEAM-5186:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 23/Aug/18 18:47
            Start Date: 23/Aug/18 18:47
    Worklog Time Spent: 10m 
      Work Description: pabloem commented on a change in pull request #6255: 
[BEAM-5186] Adding numeric support to BQ Sink
URL: https://github.com/apache/beam/pull/6255#discussion_r212417951
 
 

 ##########
 File path: sdks/python/apache_beam/io/gcp/bigquery.py
 ##########
 @@ -1156,6 +1167,8 @@ def _convert_cell_value_to_dict(self, value, field):
       # when querying, the repeated and/or record fields are flattened
       # unless we pass the flatten_results flag as False to the source
       return self.convert_row_to_dict(value, field)
+    elif field.type == 'NUMERIC':
+      return decimal.Decimal(value)
 
 Review comment:
   I've added some docs.

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


Issue Time Tracking
-------------------

    Worklog Id:     (was: 137527)
    Time Spent: 1.5h  (was: 1h 20m)

> Support for NUMERIC data type in BQ
> -----------------------------------
>
>                 Key: BEAM-5186
>                 URL: https://issues.apache.org/jira/browse/BEAM-5186
>             Project: Beam
>          Issue Type: Bug
>          Components: sdk-py-core
>            Reporter: Pablo Estrada
>            Assignee: Pablo Estrada
>            Priority: Major
>          Time Spent: 1.5h
>  Remaining Estimate: 0h
>




--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to