kennknowles opened a new issue, #19205:
URL: https://github.com/apache/beam/issues/19205
When trying to write some row in BigQuery that include a python datetime
object, the marshaling used to save a row in BigQuery is impossible.
```
File
"/home/pascal/Wks/GitHub/PEAT-AI/Albatros/venv/local/lib/python2.7/site-packages/apache_beam/internal/gcp/json_value.py",
line 124, in to_json_value
raise TypeError('Cannot convert %s to a JSON value.' % repr(obj))
TypeError:
Cannot convert datetime.datetime(2018, 9, 25, 18, 57, 18, 108579) to a JSON
value. [while running 'save/WriteToBigQuery']
```
However, this is something perfectly feasible, as `google-cloud-python`
supports it since this issue has been solved:
[https://github.com/GoogleCloudPlatform/google-cloud-python/issues/2957](https://github.com/GoogleCloudPlatform/google-cloud-python/issues/2957)
thanks to this pull request:
[https://github.com/GoogleCloudPlatform/google-cloud-python/pull/3426/files](https://github.com/GoogleCloudPlatform/google-cloud-python/pull/3426/files)
As similar approach could be taken for the `json_value.py` helper.
Is there any workaround that can be applied to solve this issue?
Imported from Jira
[BEAM-5510](https://issues.apache.org/jira/browse/BEAM-5510). Original Jira may
contain additional context.
Reported by: GeoloeG_IsT.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]