Repository navigation
docs(bigtable): authorized view samples - #19082
Conversation
There was a problem hiding this comment.
Code Review
This pull request adds new synchronous and asynchronous code snippets and tests for Bigtable Authorized Views, including writing rows, retrieving rows by key, and scanning with filters. It also introduces async snippets for dropping row ranges and deleting column families, while removing obsolete table-waiting helper calls. The review feedback identifies critical runtime issues: first, the AuthorizedView and AuthorizedViewAsync objects returned by get_authorized_view are not context managers, so using them in with or async with blocks will raise an AttributeError. Second, create_authorized_view is a standard unary RPC rather than a long-running operation, meaning calling .result() on its return value will also fail. Code suggestions are provided to assign the views directly and remove the .result() calls.
Resolve gaps in docs: - added authorized view samples - remove unneeded wait_for_table import from hello world samples - added missing drop_row_range and drop_column_family samples
🤖 I have created a release *beep* *boop* --- ## [2.51.0](google-cloud-bigtable-v2.50.2...google-cloud-bigtable-v2.51.0) (2026-12-03) ### Features * update API sources and regenerate ([#19310](#19310)) ([28423cb](28423cb)) ### Bug Fixes * **bigtable:** encode prefix to UTF-8 bytes before computing upper bound in RowSet.add_row_range_with_prefix ([#18954](#18954)) ([dfd9606](dfd9606)) * **bigtable:** encode str qualifier in DeleteRangeFromColumn and allow -2**63 in int mutations ([#18881](#18881)) ([6e80b83](6e80b83)) * **bigtable:** Log warning on background task failure instead of exception ([#18193](#18193)) ([92a8bf4](92a8bf4)) * **bigtable:** pack unpacked error details in _get_status and harden batcher error handling ([#18770](#18770)) ([525e740](525e740)) * **bigtable:** remove unneeded status field from throttling latencies metric ([#18858](#18858)) ([dd48193](dd48193)) * **bigtable:** restore the mutation lifecycle in mutate_rows and DirectRow.commit ([#18856](#18856)) ([d0ce8e3](d0ce8e3)) * **bigtable:** synchronize MutationsBatcher staging and flush scheduling ([#18827](#18827)) ([38afa8a](38afa8a)) * **bigtable:** validate DirectRow and table match in MutationsBatcher.mutate ([#18874](#18874)) ([8aa6d4d](8aa6d4d)) * **google-cloud-bigtable:** clamp mutate_row retry attempt timeouts to remaining operation timeout ([#19017](#19017)) ([304ffef](304ffef)) ### Documentation * **bigtable:** add async admin samples ([#18923](#18923)) ([14fb90b](14fb90b)) * **bigtable:** add samples for sync client ([#17820](#17820)) ([72e5f48](72e5f48)) * **bigtable:** authorized view samples ([#19082](#19082)) ([a476483](a476483)) * **bigtable:** clarify that MutationsBatcher.flush defers exceptions to close ([#18825](#18825)) ([371218d](371218d)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Resolve gaps in docs: