You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@beam.apache.org by "Udi Meiri (JIRA)" <ji...@apache.org> on 2019/03/25 17:36:00 UTC

[jira] [Resolved] (BEAM-2969) BigQueryIO fails when reading then writing timestamps before 1970

     [ https://issues.apache.org/jira/browse/BEAM-2969?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Udi Meiri resolved BEAM-2969.
-----------------------------
       Resolution: Fixed
    Fix Version/s: 2.12.0

> BigQueryIO fails when reading then writing timestamps before 1970
> -----------------------------------------------------------------
>
>                 Key: BEAM-2969
>                 URL: https://issues.apache.org/jira/browse/BEAM-2969
>             Project: Beam
>          Issue Type: Bug
>          Components: io-java-gcp
>            Reporter: Kevin Peterson
>            Assignee: Udi Meiri
>            Priority: Major
>             Fix For: 2.12.0
>
>          Time Spent: 2h 50m
>  Remaining Estimate: 0h
>
> I have a batch pipeline which reads from BigQuery (via standard sql query), does a small transform, and writes the data back to BigQuery.
> This fails if any timestamps are present in the BQ data from before 1970:
> {{"message" : "JSON parsing error in row starting at position 0: Couldn't convert value to timestamp: Could not parse '1969-12-28 02:52:54.-484 UTC' as a timestamp. Required format is YYYY-MM-DD HH:MM[:SS[.SSSSSS]] Field: observed_timestamp; Value: 1969-12-28 02:52:54.-484 UTC",}}
> It appears the TableRow coder doesn't handle negative timestamps properly, using a negative number for the fractions of a second, which BQ considers invalid.



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