Skip to content

_PARTITIONTIME is not returned in version 3.11.4 (is returned in 3.11.3) #1655

@SudhirNune

Description

@SudhirNune

_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-bigquery version:
    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

  1. Install Version: 3.11.3 of google-cloud-bigquery
  2. Import the Package
  3. Connect to the BQ with Service Account
  4. Create Cursor
  5. 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')
  1. Output has the column "_PARTITIONTIME"
  2. Install Version: 3.11.4 of google-cloud-bigquery
  3. Import the Package
  4. Connect to the BQ with Service Account
  5. Create Cursor
  6. 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')
  1. Output Missing the column "_PARTITIONTIME"

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    api: bigqueryIssues related to the googleapis/python-bigquery API.priority: p3Desirable 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.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions