Skip to content
This repository was archived by the owner on Mar 6, 2026. It is now read-only.

feat: adds time_format and timestamp_format and associated tests - #2238

Merged
chalmerlowe merged 1 commit into
mainfrom
feat-374142081-add-time-and-timestamp-formats
Jul 14, 2025
Merged

feat: adds time_format and timestamp_format and associated tests#2238
chalmerlowe merged 1 commit into
mainfrom
feat-374142081-add-time-and-timestamp-formats

Conversation

@chalmerlowe

Copy link
Copy Markdown
Collaborator

This commit introduces new configuration options for BigQuery load jobs and external table definitions, aligning with recent updates to the underlying protos.

New options added:

time_format: format used for parsing TIME values. (Applies to LoadJobConfig, LoadJob, and ExternalConfig)
timestamp_format: format used for parsing TIMESTAMP values. (Applies to LoadJobConfig, LoadJob, and ExternalConfig)

Changes include:

Added corresponding properties (getters/setters) to LoadJobConfig, LoadJob, and ExternalConfig.
Updated docstrings and type hints for all new attributes.
Updated unit tests to cover the new options, ensuring they are correctly handled during object initialization, serialization to API representation, and deserialization from API responses.

@chalmerlowe
chalmerlowe requested review from a team and Neenu1995July 14, 2025 13:45
@product-auto-labelproduct-auto-labelBot added size: m Pull request size is medium. api: bigquery Issues related to the googleapis/python-bigquery API. labels Jul 14, 2025
@chalmerlowe
chalmerlowe requested review from Linchin and removed request for Neenu1995July 14, 2025 13:45
@chalmerlowe
chalmerlowe merged commit 371ad29 into mainJul 14, 2025
28 checks passed
@chalmerlowe
chalmerlowe deleted the feat-374142081-add-time-and-timestamp-formats branch July 14, 2025 16:15
@release-pleaserelease-pleaseBot mentioned this pull request Jul 14, 2025
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

api: bigqueryIssues related to the googleapis/python-bigquery API.size: mPull request size is medium.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@chalmerlowe@tswast@Linchin