GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat: Rerouted ReadRows to data client by daniel-sanche · Pull Request #18198 · googleapis/google-cloud-python

Conversation

@daniel-sanche

@daniel-sanche daniel-sanche commented Aug 21, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Migrating over @gkevinzheng PR from bigtable monorepo googleapis/python-bigtable#1299

Original description:

Changes Made:

  • Added methods to convert Row and Cell objects in the data client to PartialRowData and Cell objects in the legacy client.
  • Removed legacy client code related to processing ReadRowResponse chunks and testing ReadRowResponse chunks.
  • Removed _update_message_request from RowSet because it's no longer needed to create a ReadRowQuery
  • Rerouted read_row and read_rows to use their data client counterparts in table.py.

Additional Changes:

Applied some guards against removed semi-private APIs, after internal discussion:

  • 6941199: we had a couple technically public, but not meant to be accessed attributes. This commit replaces them with properties that raise a warning and return None, rather than completely removing them
  • c9617ac: Similarily, the PartialRowsData constructor was technically public, but not intended to be used. This change returns an empty generator when the previous constructor is used, with a warning
  • b51292e: handles a bug that could occur if None is passed for retries
  • 92da437: added better typing to generator

Note to reviewers: This PR has already been reviewed and merged to a staging branch, with the intention of doing a single merge to main. We are now planning to slowly rollout these changes back to the main branch. Minimal re-review should be necessary

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

gemini-code-assist[bot] reacted with eyes emoji
All reactions
  • 👀 1 reaction
gemini-code-assist[bot]
gemini-code-assist Bot reviewed Aug 21, 2026
View reviewed changes

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

Copy link
Copy Markdown
Contributor

There was a problem hiding this 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 refactors the Bigtable client to delegate row reading and streaming to the underlying _table_impl data client, deprecating legacy classes like _RowMerger and several attributes on PartialRowsData. The review feedback identifies potential AttributeError risks when accessing retry.deadline directly (since google.api_core.retry.Retry typically uses _deadline internally) in table.py and unit tests, as well as when calling close() on _generator in row_data.py if the generator does not support it.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread packages/google-cloud-bigtable/google/cloud/bigtable/table.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread packages/google-cloud-bigtable/google/cloud/bigtable/table.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread packages/google-cloud-bigtable/google/cloud/bigtable/row_data.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread packages/google-cloud-bigtable/tests/unit/v2_client/test_table.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

@daniel-sanche
daniel-sanche force-pushed the shim/11-read-rows-data-client branch from 92da437 to e435179 Compare September 2, 2026 18:42
@daniel-sanche
daniel-sanche marked this pull request as ready for review September 2, 2026 22:09
@daniel-sanche
daniel-sanche requested a review from a team as a code owner September 2, 2026 22:09
mutianf
mutianf approved these changes Sep 3, 2026
View reviewed changes
Comment thread packages/google-cloud-bigtable/google/cloud/bigtable/row_data.py

self.rows = {}
@property
def last_scanned_row_key(self):

@mutianf mutianf Sep 3, 2026

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

I think this property was only used in the internal method? Would it actually be called? Is it safe to just remove it?

Same question with read_method and retry, and request

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@daniel-sanche daniel-sanche Sep 4, 2026

Copy link
Copy Markdown
Contributor Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

They were technically public attributes before, even though they weren't advertised. Hopefully they aren't used, but I thought the safer choice would be to raise a warning and return None when they are accessed, instead of letting the program raise an AttributeError

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread packages/google-cloud-bigtable/google/cloud/bigtable/table.py
:type row_key: bytes
:param row_key: The key of the row to read from.

:type filter_: :class:`.RowFilter`

@mutianf mutianf Sep 3, 2026

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Did we rewrite the RowFilter class?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@daniel-sanche daniel-sanche Sep 4, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

The data client originally duplicated the row_filter file, with a few small changes to some of the classes. The shim deleted the original row_filter file, and aliases in the data client classes instead (with a few patches to make sure the API is consistent)

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@daniel-sanche
daniel-sanche force-pushed the shim/11-read-rows-data-client branch 2 times, most recently from ce411c0 to dad8a76 Compare September 4, 2026 22:21
@daniel-sanche
daniel-sanche force-pushed the shim/11-read-rows-data-client branch from caea489 to 3451e38 Compare September 14, 2026 21:18
Base automatically changed from shim/10-read-rows-rst-stream to main September 15, 2026 16:39
gkevinzheng and others added 7 commits September 15, 2026 09:39
@gkevinzheng @daniel-sanche
feat: Rerouted ReadRows to data client (#1299)
bd7e8e0
**Changes Made:**
- Added methods to convert `Row` and `Cell` objects in the data client
to `PartialRowData` and `Cell` objects in the legacy client.
- Removed legacy client code related to processing `ReadRowResponse`
chunks and testing `ReadRowResponse` chunks.
- Removed `_update_message_request` from `RowSet` because it's no longer
needed to create a `ReadRowQuery`
- Rerouted `read_row` and `read_rows` to use their data client
counterparts in `table.py`.
@daniel-sanche
resolved merge conflicts
b8811fa
@daniel-sanche
added placeholders for deprecated properties
8aa1f99
@daniel-sanche
capture and raise warnings if constructor is used with old args
344ee21
@daniel-sanche
handle None retry
7b332c3
@daniel-sanche
add generator typing
21cd6d4
@daniel-sanche
ran format
498b4bc
@daniel-sanche
daniel-sanche force-pushed the shim/11-read-rows-data-client branch from 3451e38 to 498b4bc Compare September 15, 2026 16:39
@daniel-sanche
daniel-sanche merged commit 934cd2d into main Sep 15, 2026
50 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@daniel-sanche
daniel-sanche deleted the shim/11-read-rows-data-client branch September 15, 2026 17:24
@release-please release-please Bot mentioned this pull request Sep 15, 2026
chore: release main #18368
Merged
zhumin8 pushed a commit that referenced this pull request Sep 17, 2026
@release-please
chore: release main (#18368)
773373e
🤖 I have created a release *beep* *boop*
---


<details><summary>google-ads-admanager: 0.10.5</summary>

##
[0.10.5](google-ads-admanager-v0.10.4...google-ads-admanager-v0.10.5)
(2026-09-17)


### Features

* update API sources and regenerate
([#18396](#18396))
([e9f8e59](e9f8e59))
* update API sources and regenerate.
([e9f8e59](e9f8e59))
</details>

<details><summary>google-ads-datamanager: 0.9.3</summary>

##
[0.9.3](google-ads-datamanager-v0.9.2...google-ads-datamanager-v0.9.3)
(2026-09-17)


### Features

* update API sources and regenerate
([#18396](#18396))
([e9f8e59](e9f8e59))
* update API sources and regenerate.
([e9f8e59](e9f8e59))
</details>

<details><summary>google-analytics-data: 0.23.1</summary>

##
[0.23.1](google-analytics-data-v0.23.0...google-analytics-data-v0.23.1)
(2026-09-17)


### Features

* update API sources and regenerate
([#18396](#18396))
([e9f8e59](e9f8e59))
* update API sources and regenerate.
([e9f8e59](e9f8e59))
</details>

<details><summary>google-api-core: 2.38.0</summary>

##
[2.38.0](google-api-core-v2.37.0...google-api-core-v2.38.0)
(2026-09-17)


### Features

* **core:** add request hook to enrich T4 network spans with GCP
resource attributes (E)
([#18272](#18272))
([1ca95e9](1ca95e9))
</details>

<details><summary>google-apps-meet: 0.5.1</summary>

##
[0.5.1](google-apps-meet-v0.5.0...google-apps-meet-v0.5.1)
(2026-09-17)


### Features

* update API sources and regenerate
([#18396](#18396))
([e9f8e59](e9f8e59))
* update API sources and regenerate.
([e9f8e59](e9f8e59))
</details>

<details><summary>google-cloud-api-gateway: 1.17.0</summary>

##
[1.17.0](google-cloud-api-gateway-v1.16.0...google-cloud-api-gateway-v1.17.0)
(2026-09-17)


### Features

* update API sources and regenerate
([#18396](#18396))
([e9f8e59](e9f8e59))
* update API sources and regenerate.
([e9f8e59](e9f8e59))
</details>

<details><summary>google-cloud-auditmanager: 0.3.2</summary>

##
[0.3.2](google-cloud-auditmanager-v0.3.1...google-cloud-auditmanager-v0.3.2)
(2026-09-17)


### Features

* update API sources and regenerate
([#18396](#18396))
([e9f8e59](e9f8e59))
* update API sources and regenerate.
([e9f8e59](e9f8e59))
</details>

<details><summary>google-cloud-backupdr: 0.10.2</summary>

##
[0.10.2](google-cloud-backupdr-v0.10.1...google-cloud-backupdr-v0.10.2)
(2026-09-17)


### Features

* **google/cloud/backupdr/v1beta:** add google-cloud-backupdr
([#18399](#18399))
([91b7ae7](91b7ae7))
</details>

<details><summary>google-cloud-bigquery: 3.45.2</summary>

##
[3.45.2](google-cloud-bigquery-v3.45.1...google-cloud-bigquery-v3.45.2)
(2026-09-17)


### Bug Fixes

* disambiguate google-cloud-bigquery `to_dataframe` usage from
`pandas-gbq` in ua.
([#18369](#18369))
([0d7d59c](0d7d59c))
</details>

<details><summary>google-cloud-bigtable: 2.46.0</summary>

##
[2.46.0](google-cloud-bigtable-v2.45.0...google-cloud-bigtable-v2.46.0)
(2026-09-17)


### Features

* **bigtable:** Rerouted RowSet and RowRange to use ReadRows from data
client
([#18196](#18196))
([1857302](1857302))
* Rerouted ReadRows to data client
([#18198](#18198))
([934cd2d](934cd2d))
* update API sources and regenerate
([#18396](#18396))
([e9f8e59](e9f8e59))
* update API sources and regenerate.
([e9f8e59](e9f8e59))


### Bug Fixes

* **bigtable:** Added rst_stream exception handling for ReadRows.
([#18197](#18197))
([f30df60](f30df60))
</details>

<details><summary>google-cloud-compute: 1.54.0</summary>

##
[1.54.0](google-cloud-compute-v1.53.0...google-cloud-compute-v1.54.0)
(2026-09-17)


### Features

* update API sources and regenerate
([#18396](#18396))
([e9f8e59](e9f8e59))
* update API sources and regenerate.
([e9f8e59](e9f8e59))
</details>

<details><summary>google-cloud-compute-v1beta: 0.12.6</summary>

##
[0.12.6](google-cloud-compute-v1beta-v0.12.5...google-cloud-compute-v1beta-v0.12.6)
(2026-09-17)


### Features

* update API sources and regenerate
([#18396](#18396))
([e9f8e59](e9f8e59))
* update API sources and regenerate.
([e9f8e59](e9f8e59))
</details>

<details><summary>google-cloud-devicestreaming: 0.5.1</summary>

##
[0.5.1](google-cloud-devicestreaming-v0.5.0...google-cloud-devicestreaming-v0.5.1)
(2026-09-17)


### Features

* update API sources and regenerate
([#18396](#18396))
([e9f8e59](e9f8e59))
* update API sources and regenerate.
([e9f8e59](e9f8e59))
</details>

<details><summary>google-cloud-discoveryengine: 0.20.4</summary>

##
[0.20.4](google-cloud-discoveryengine-v0.20.3...google-cloud-discoveryengine-v0.20.4)
(2026-09-17)


### Features

* update API sources and regenerate
([#18396](#18396))
([e9f8e59](e9f8e59))
* update API sources and regenerate.
([e9f8e59](e9f8e59))
</details>

<details><summary>google-cloud-firestore: 2.31.0</summary>

##
[2.31.0](google-cloud-firestore-v2.30.0...google-cloud-firestore-v2.31.0)
(2026-09-17)


### Features

* **firestore:** add BSONInt32 support
([#18388](#18388))
([136d4b9](136d4b9))
* **firestore:** add BSONMinKey and BSONMaxKey support
([#18385](#18385))
([9a1fb24](9a1fb24))
</details>

<details><summary>google-cloud-kms: 3.17.0</summary>

##
[3.17.0](google-cloud-kms-v3.16.0...google-cloud-kms-v3.17.0)
(2026-09-17)


### Features

* update API sources and regenerate
([#18396](#18396))
([e9f8e59](e9f8e59))
* update API sources and regenerate.
([e9f8e59](e9f8e59))
</details>

<details><summary>google-cloud-network-services: 0.10.3</summary>

##
[0.10.3](google-cloud-network-services-v0.10.2...google-cloud-network-services-v0.10.3)
(2026-09-17)


### Features

* **google/cloud/networkservices/v1beta1:** add
google-cloud-network-services
([#18398](#18398))
([8df34ce](8df34ce))


### Bug Fixes

* empty commit to bump v1beta version
([#18411](#18411))
([3b3cc6f](3b3cc6f))
</details>

<details><summary>google-cloud-pubsub: 2.41.0</summary>

##
[2.41.0](google-cloud-pubsub-v2.40.0...google-cloud-pubsub-v2.41.0)
(2026-09-17)


### Features

* update API sources and regenerate
([#18396](#18396))
([e9f8e59](e9f8e59))
* update API sources and regenerate.
([e9f8e59](e9f8e59))
</details>

<details><summary>google-cloud-securesourcemanager: 0.6.2</summary>

##
[0.6.2](google-cloud-securesourcemanager-v0.6.1...google-cloud-securesourcemanager-v0.6.2)
(2026-09-17)


### Features

* update API sources and regenerate
([#18396](#18396))
([e9f8e59](e9f8e59))
* update API sources and regenerate.
([e9f8e59](e9f8e59))
</details>

<details><summary>google-maps-solar: 0.6.1</summary>

##
[0.6.1](google-maps-solar-v0.6.0...google-maps-solar-v0.6.1)
(2026-09-17)


### Features

* update API sources and regenerate
([#18396](#18396))
([e9f8e59](e9f8e59))
* update API sources and regenerate.
([e9f8e59](e9f8e59))
</details>

---
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>
@csmithd csmithd mentioned this pull request Oct 1, 2026
[BUG]: gRPC response wrapper raises AttributeError for generators, affecting Bigtable reads after upgrading to 2.46.0 DataDog/dd-trace-py#20729
Open
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@mutianf mutianf mutianf approved these changes
+1 more reviewer
@gemini-code-assist gemini-code-assist[bot] gemini-code-assist[bot] left review comments
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@daniel-sanche @mutianf @gkevinzheng
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.