Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: allow empty headers for btql routing #1072

Merged
merged 9 commits into from
Jan 17, 2025
Merged

Conversation

daniel-sanche
Copy link
Contributor

@daniel-sanche daniel-sanche commented Jan 16, 2025

Normally, gapic clients treat empty strings as unset values for routing headers. This causes issues with btql, which requires the header to be sent to the backend, even if empty.

This PR patches the gapic code to allow empty app_profile_id headers for the execute_query rpc. Long term, we will have to find a solution on the backend, so empty headers aren't needed

Fixes #1073

@product-auto-label product-auto-label bot added size: s Pull request size is small. api: bigtable Issues related to the googleapis/python-bigtable API. labels Jan 16, 2025
@daniel-sanche daniel-sanche added the owlbot:run Add this label to trigger the Owlbot post processor. label Jan 16, 2025
@gcf-owl-bot gcf-owl-bot bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Jan 16, 2025
@daniel-sanche daniel-sanche added the owlbot:run Add this label to trigger the Owlbot post processor. label Jan 16, 2025
@gcf-owl-bot gcf-owl-bot bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Jan 16, 2025
@daniel-sanche daniel-sanche changed the title [DRAFT] fix: allow empty headers for btql routing fix: allow empty headers for btql routing Jan 16, 2025
@daniel-sanche daniel-sanche marked this pull request as ready for review January 17, 2025 00:06
@daniel-sanche daniel-sanche requested review from a team as code owners January 17, 2025 00:06
@daniel-sanche daniel-sanche merged commit e7ecfeb into main Jan 17, 2025
24 of 33 checks passed
@daniel-sanche daniel-sanche deleted the fix_btql_headers branch January 17, 2025 00:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: bigtable Issues related to the googleapis/python-bigtable API. size: s Pull request size is small.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

broken routing for btql when no app_profile_id is set
3 participants