Skip to content

[DCP - BQ Federation] Propagate location in to the BQ connection#2022

Merged
gmechali merged 4 commits into
datacommonsorg:masterfrom
gmechali:location
May 20, 2026
Merged

[DCP - BQ Federation] Propagate location in to the BQ connection#2022
gmechali merged 4 commits into
datacommonsorg:masterfrom
gmechali:location

Conversation

@gmechali
Copy link
Copy Markdown
Contributor

Allow using the env var REGION or LOCATION because base DC ingestion helper uses LOCATION, while DCP has been using the region env var everywhere. Would be great to align on one long term but this should be harmless.

…her LOCATION or REGION flag because base DC one uses location, but DCP already uses REGIOn.
@gmechali gmechali requested a review from SandeepTuniki May 20, 2026 18:49
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces location propagation for BigQuery operations by updating the BigQueryExecutor and AggregationRunner classes to accept and utilize a location parameter. Additionally, the CLI flags in main.py now support a fallback to the REGION environment variable if LOCATION is not provided. Review feedback suggests initializing the bigquery.Client with the location parameter directly to ensure consistency across all operations and to simplify subsequent query calls by removing redundant parameters.

Comment thread import-automation/workflow/ingestion-helper/aggregation_utils.py Outdated
Comment thread import-automation/workflow/ingestion-helper/aggregation_utils.py Outdated
gmechali and others added 3 commits May 20, 2026 15:04
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
@gmechali gmechali requested a review from clincoln8 May 20, 2026 19:10
Copy link
Copy Markdown
Contributor

@clincoln8 clincoln8 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!!

@gmechali gmechali merged commit 599dbe7 into datacommonsorg:master May 20, 2026
9 checks passed
@gmechali gmechali deleted the location branch May 20, 2026 22:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants