Repository navigation
Adapt GCP BigtableHook to run in private cloud - #73181
Conversation
42122e9 to
1afda33
Compare
|
@potiuk Hi there! Can you please check this PR? :) |
- 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
1afda33 to
4418d68
Compare
potiuk
left a comment
There was a problem hiding this comment.
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 👍 |
Was generative AI tooling used to co-author this PR?
{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.