-
Notifications
You must be signed in to change notification settings - Fork 322
Closed
Labels
api: bigqueryIssues related to the googleapis/python-bigquery API.Issues related to the googleapis/python-bigquery API.type: questionRequest for information or clarification. Not an issue.Request for information or clarification. Not an issue.
Description
Environment details
google-api-python-client==1.9.3
google-cloud-bigquery==1.25.0
pyarrow==0.17.1
Steps to reproduce
- Issuing a select statement that returns a date column and converting the results to dataframe fails to convert the date column and leaves it as string
Code example
select = "select DATE(date) as dt from [project:dataset.table]"
client = bigquery.Client()
job_config = bigquery.QueryJobConfig(use_legacy_sql=True)
select_job = client.query(select, job_config=job_config)
select_job.result()
df = select_job.to_dataframe()
df.dtypes
# dt objectMetadata
Metadata
Assignees
Labels
api: bigqueryIssues related to the googleapis/python-bigquery API.Issues related to the googleapis/python-bigquery API.type: questionRequest for information or clarification. Not an issue.Request for information or clarification. Not an issue.