Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

tseaver
Copy link
Contributor

@tseaver tseaver commented Dec 3, 2016

Also, distinguish parsing 'DATETIME' vs. 'TIMESTAMP' properly when processing row data.

Closes #2799.

…pes.

Also, distingush parsing 'DATETIME' vs. 'TIMESTAMP' properly when
processing row data.

Closes #2799.
@tseaver tseaver added api: bigquery Issues related to the BigQuery API. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns. labels Dec 3, 2016
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Dec 3, 2016
@dhermes dhermes changed the title Coerce query paramter values from native types to JSON-appropriate types Coerce query parameter values from native types to JSON-appropriate types Dec 3, 2016
"""Coerce 'value' to a datetime, if set or not nullable."""
if _not_null(value, field):
# value will be a string, in YYYY-MM-DDTHH:MM:SS form.
return datetime.datetime.strptime(value, '%Y-%m-%dT%H:%M:%S')

This comment was marked as spam.

This comment was marked as spam.

@tseaver tseaver merged commit 03864ce into googleapis:master Dec 4, 2016
@tseaver tseaver deleted the 2799-bigquery-query_parms-coerce_values branch December 4, 2016 04:15
richkadel pushed a commit to richkadel/google-cloud-python that referenced this pull request May 6, 2017
richkadel pushed a commit to richkadel/google-cloud-python that referenced this pull request May 6, 2017
…arms-coerce_values

Coerce query parameter values from native types to JSON-appropriate types
plamut pushed a commit to googleapis/python-bigquery that referenced this pull request Feb 4, 2020
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. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants