-
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.priority: p3Desirable enhancement or fix. May not be included in next release.Desirable enhancement or fix. May not be included in next release.status: awaiting informationstatus: will not fixInvalid (untrue/unsound/erroneous), inconsistent with product, not on roadmap.Invalid (untrue/unsound/erroneous), inconsistent with product, not on roadmap.
Description
_PARTITIONTIME is not returned in 3.11.4 Verion works till 3.11.3
Environment details
- OS type and version: Windows & UNIX
- Python version: Python 3.8.10
- pip version: pip 23.2.1
google-cloud-bigqueryversion:
Name: google-cloud-bigquery
Version: 3.11.3
Summary: Google BigQuery API client library
Home-page: https://github.com/googleapis/python-bigquery
Author: Google LLC
Author-email: [email protected]
License: Apache 2.0
Location: c:\users\hrq1364\envs\khde\lib\site-packages
Requires: google-api-core, google-cloud-core, google-resumable-media, grpcio, packaging, proto-plus, protobuf, python-dateutil, requests
Required-by: dbt-bigquery, kh-de, pandas-gbq
Steps to reproduce
- Install Version: 3.11.3 of google-cloud-bigquery
- Import the Package
- Connect to the BQ with Service Account
- Create Cursor
- Run the query (Using the Above) -
SELECT export_time, pricing_as_of_time, product_taxonomy,
billing_account_id, business_entity_name, service, sku, geo_taxonomy,
pricing_unit, pricing_unit_description, account_currency_code,
currency_conversion_rate, list_price, billing_account_price, _PARTITIONTIME,
CAST(TIMESTAMP_TRUNC(export_time, DAY) AS DATE) AS export_date
FROM `billing-us-01.us_billing_data.cloud_pricing_export`
WHERE (_PARTITIONTIME > '2023-09-04 00:00:00')
- Output has the column "_PARTITIONTIME"
- Install Version: 3.11.4 of google-cloud-bigquery
- Import the Package
- Connect to the BQ with Service Account
- Create Cursor
- Run the query (Using the Above) -
SELECT export_time, pricing_as_of_time, product_taxonomy,
billing_account_id, business_entity_name, service, sku, geo_taxonomy,
pricing_unit, pricing_unit_description, account_currency_code,
currency_conversion_rate, list_price, billing_account_price, _PARTITIONTIME,
CAST(TIMESTAMP_TRUNC(export_time, DAY) AS DATE) AS export_date
FROM `billing-us-01.us_billing_data.cloud_pricing_export`
WHERE (_PARTITIONTIME > '2023-09-04 00:00:00')
- Output Missing the column "_PARTITIONTIME"
Thanks!
Metadata
Metadata
Assignees
Labels
api: bigqueryIssues related to the googleapis/python-bigquery API.Issues related to the googleapis/python-bigquery API.priority: p3Desirable enhancement or fix. May not be included in next release.Desirable enhancement or fix. May not be included in next release.status: awaiting informationstatus: will not fixInvalid (untrue/unsound/erroneous), inconsistent with product, not on roadmap.Invalid (untrue/unsound/erroneous), inconsistent with product, not on roadmap.