Skip to content

Instantly share code, notes, and snippets.

@JoaoVagner
Created June 21, 2018 11:47
Show Gist options
  • Save JoaoVagner/85c3759e9d44f12d9b1c6c7c9d5f92e1 to your computer and use it in GitHub Desktop.
Save JoaoVagner/85c3759e9d44f12d9b1c6c7c9d5f92e1 to your computer and use it in GitHub Desktop.
Process Process-1:
Traceback (most recent call last):
File "/usr/lib/python2.7/multiprocessing/process.py", line 258, in _bootstrap
self.run()
File "/usr/lib/python2.7/multiprocessing/process.py", line 114, in run
self._target(*self._args, **self._kwargs)
File "app.py", line 210, in insert_data
insert_big_query(result_data, result.TABLE_NAME)
File "app.py", line 177, in insert_big_query
errors = client.insert_rows(table, rows_to_insert, selected_fields=schema) # API request
File "/usr/local/lib/python2.7/dist-packages/google/cloud/bigquery/client.py", line 1222, in insert_rows
value = converter(value)
File "/usr/local/lib/python2.7/dist-packages/google/cloud/bigquery/_helpers.py", line 287, in _datetime_to_json
value = value.strftime(_RFC3339_MICROS_NO_ZULU)
ValueError: year=1898 is before 1900; the datetime strftime() methods require year >= 1900
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment