James Stratford
07/28/2024, 9:35 PMtarget-bigquery
I am using GCS Staging - one of my taps outputs timestamps as '2020-07-22T053222+0000' which throws an error on the google api
[2m2024-07-27T18:05:54.506201Z[0m [[32m[1minfo [0m] [1mgoogle.api_core.exceptions.BadRequest: 400 Error while reading data, error message: JSON table encountered too many errors, giving up. Rows: 1; errors: 1. Please look into the errors[] collection for more details. File: <gs://REDACTED>; reason: invalid, location: <gs://REDACTED>, message: Error while reading data, error message: JSON table encountered too many errors, giving up. Rows: 1; errors: 1. Please look into the errors[] collection for more details. File: <gs://REDACTED>; reason: invalid, message: Error while reading data, error message: JSON processing encountered too many errors, giving up. Rows: 1; errors: 1; max bad: 0; error percent: 0; reason: invalid, location: <gs://REDACTED>, message: Error while reading data, error message: JSON parsing error in row starting at position 0: Couldn't convert value to timestamp: Could not parse '2020-07-22T05:32:22+0000' as a timestamp. Required format is YYYY-MM-DD HH:MM[:SS[.SSSSSS]] or YYYY/MM/DD HH:MM[:SS[.SSSSSS]] Field: creation_time; Value: 2020-07-22T05:32:22+0000 File: <gs://REDACTED>
How to resolve this? I want to use GCS staging, but the issue doesnt exist when using batch loadJames Stratford
07/28/2024, 11:38 PMEdgar Ramírez (Arch.dev)
07/29/2024, 2:00 PMJames Stratford
07/29/2024, 8:24 PMGeoffrey LOUASSE
08/04/2024, 7:24 PMJames Stratford
08/04/2024, 7:57 PMGeoffrey LOUASSE
08/04/2024, 8:23 PMCould not parse '0000-00-00' as a timestamp. Required format is YYYY-MM-DD HH:MM[:SS[.SSSSSS]] or YYYY/MM/DD HH:MM[:SS[.SSSSSS]] Field: date_kbis; Value: 0000-00-0