Skip to content
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

Fix '_time_from_json' for values with micros. #5753

Merged
merged 1 commit into from
Aug 6, 2018
Merged

Fix '_time_from_json' for values with micros. #5753

merged 1 commit into from
Aug 6, 2018

Conversation

tseaver
Copy link
Contributor

@tseaver tseaver commented Aug 6, 2018

See #5750.

The issue remains in 'google.cloud._helpers._time_from_iso8601_time_naive',
but I don't want to have BigQuery wait on a release of core.

See #5750.

The issue remains in 'google.cloud._helpers._time_from_iso8601_time_naive',
but I don't want to have BigQuery wait on a release of core.
@tseaver tseaver added the api: bigquery Issues related to the BigQuery API. label Aug 6, 2018
@tseaver tseaver requested a review from mcdonc August 6, 2018 17:18
@tseaver tseaver requested a review from theacodes as a code owner August 6, 2018 17:18
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Aug 6, 2018
Copy link
Contributor

@mcdonc mcdonc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor question/comment.

@@ -142,8 +143,13 @@ def _date_from_json(value, field):
def _time_from_json(value, field):
"""Coerce 'value' to a datetime date, if set or not nullable"""
if _not_null(value, field):
# value will be a string, in HH:MM:SS form.
return _time_from_iso8601_time_naive(value)
if len(value) == 8: # HH:MM:SS

This comment was marked as spam.

This comment was marked as spam.

@tseaver tseaver merged commit 0f54a97 into googleapis:master Aug 6, 2018
@tseaver tseaver deleted the 5750-bigquery-fix-_time_from_json-subsec branch August 6, 2018 18:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: bigquery Issues related to the BigQuery API. cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants