Skip to content

Adapt GCP BigtableHook to run in private cloud - #73181

Merged
potiuk merged 2 commits into
apache:mainfrom
VladaZakharova:fix_private_cloud_bigtable_hook
Oct 4, 2026
Merged

potiuk merged 2 commits into
apache:mainfrom
VladaZakharova:fix_private_cloud_bigtable_hook

Conversation

@olegkachur-e

Copy link
Copy Markdown
Contributor
  • Customize ClientOptions generation, for the non-default universal domain.

Was generative AI tooling used to co-author this PR?
  • Yes (please specify the tool below)

  • Read the Pull Request Guidelines for more information. Note: commit author/co-author name and email in commits become permanently public when merged.
  • For fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
  • When adding dependency, check compliance with the ASF 3rd Party License Policy.
  • For significant user-facing changes create newsfragment: {pr_number}.significant.rst, in airflow-core/newsfragments. You can add this file in a follow-up commit after the PR is created so you know the PR number.

@boring-cyborg boring-cyborg Bot added area:providers provider:google Google (including GCP) related issues labels Sep 15, 2026
@olegkachur-e
olegkachur-e force-pushed the fix_private_cloud_bigtable_hook branch from 42122e9 to 1afda33 Compare September 17, 2026 10:57
@VladaZakharova

Copy link
Copy Markdown
Contributor

@potiuk Hi there! Can you please check this PR? :)

Oleg Kachur and others added 2 commits October 4, 2026 04:45
- Customize ClientOptions generation,
for the non-default universal domain.
…ride

The override exists because google.cloud.bigtable.Client ignores universe_domain when it builds the admin channel; without saying so it is easy to simplify away. Dropping api_endpoint_override silently also differed from the base hook, which logs it.

Generated-by: Claude Opus 5
@potiuk
potiuk force-pushed the fix_private_cloud_bigtable_hook branch from 1afda33 to 4418d68 Compare October 4, 2026 06:54

@potiuk potiuk left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks, this looks right. google.cloud.bigtable.Client builds the admin gRPC channel from client_options.api_endpoint only and falls back to bigtableadmin.googleapis.com otherwise. It ignores universe_domain, so the generic ClientOptions(universe_domain=...) from GoogleBaseHook does not reach a non-default universe for Bigtable. Forcing bigtableadmin.<universe> matches the GAPIC endpoint template, and the default-universe path is unchanged.

I rebased onto current main and pushed one small follow-up commit (4418d68271) with a few nits I'd otherwise have asked for — each is explained inline. Merging once CI is green.


Drafted-by: Claude Code (Opus 5); reviewed by @potiuk before posting

@potiuk
potiuk merged commit d1d5b1a into apache:main Oct 4, 2026
87 checks passed
@olegkachur-e

Copy link
Copy Markdown
Contributor Author

Thanks, this looks right. google.cloud.bigtable.Client builds the admin gRPC channel from client_options.api_endpoint only and falls back to bigtableadmin.googleapis.com otherwise. It ignores universe_domain, so the generic ClientOptions(universe_domain=...) from GoogleBaseHook does not reach a non-default universe for Bigtable. Forcing bigtableadmin.<universe> matches the GAPIC endpoint template, and the default-universe path is unchanged.

I rebased onto current main and pushed one small follow-up commit (4418d68271) with a few nits I'd otherwise have asked for — each is explained inline. Merging once CI is green.

Drafted-by: Claude Code (Opus 5); reviewed by @potiuk before posting

Awesome! Thank you for the review and help 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:providers provider:google Google (including GCP) related issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants