-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
'Table.insert_data' does not support Datetime values #2957
Comments
Thanks for reporting @inkrement! |
@inkrement I haven't been able to reproduce this locally. Are you on the latest version of the library? |
I installed it directly from the pip repository. But I don't use the library anymore so I don't know :/ |
@daspecter Make sure there is a test for this case. If there already is, point to it and close this. If there is not, make one and post a PR. |
I believe this is covered in this system test. |
@daspecster Perhaps your environment is different? I'm still seeing the issue, and it's exceedingly easy to reproduce.
It's also a pretty common thing with Python's json library. Any time you pass a datetime object, this happens. The question is, what is the other end expecting for formatting? |
@tswast I'm running up against the difference in the JSON representation of datetime for row values (i.e., floating point seconds to microsecond precisions) vs. query parameters (ISO strings). I'm assuming that is a known issue (or design choice): are there other types where the row value representation is known to differ from query parameter representation? |
* Move '_row{,s}_from_json' next to scalar '_from_json' helpers. * Add converter helpers for row data scalars. * Convert row data using helpers. Closes #2957.
Seems like the python api library does not support native python datetime objects for inserting BigQuery DateTime-values.
The text was updated successfully, but these errors were encountered: