Skip to content

feat(bigtable): Rerouted RowSet and RowRange to use ReadRows from data client - #18196

Open
daniel-sanche wants to merge 3 commits into
shim/08-bulk-mutate-rowsfrom
shim/09-read-rows-row-set
Open

feat(bigtable): Rerouted RowSet and RowRange to use ReadRows from data client#18196
daniel-sanche wants to merge 3 commits into
shim/08-bulk-mutate-rowsfrom
shim/09-read-rows-row-set

Conversation

@daniel-sanche

Copy link
Copy Markdown
Contributor

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

Original description:

Changes made:

  • Refactored _MappableAttributesMixin to helpers.py for use in RowRange.
  • Used RowRange and ReadRowsQuery from the data client as backing data sources for RowRange and RowSet respectively.

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

@daniel-sanche daniel-sanche changed the title Shim/09 read rows row set feat(bigtable): Rerouted RowSet and RowRange to use ReadRows from data client Aug 21, 2026

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

Copy link
Copy Markdown
Contributor

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 RowSet and RowRange to use ReadRowsQuery and BaseRowRange from the data client, and extracts _MappableAttributesMixin into a shared helper module. The review feedback suggests addressing potential infinite recursion in _MappableAttributesMixin's magic methods and avoiding fragile private attribute access in RowRange.get_range_kwargs by using public properties.

Comment thread packages/google-cloud-bigtable/google/cloud/bigtable/helpers.py
Comment thread packages/google-cloud-bigtable/google/cloud/bigtable/row_set.py Outdated
@daniel-sanche
daniel-sanche force-pushed the shim/09-read-rows-row-set branch from 406b508 to 06102a1 Compare September 2, 2026 18:42
@daniel-sanche
daniel-sanche marked this pull request as ready for review September 2, 2026 19:16
@daniel-sanche
daniel-sanche requested a review from a team as a code owner September 2, 2026 19:16
@daniel-sanche
daniel-sanche force-pushed the shim/09-read-rows-row-set branch from e446a86 to 2677f9a Compare September 2, 2026 19:22
@daniel-sanche
daniel-sanche force-pushed the shim/09-read-rows-row-set branch from 2677f9a to 69703c3 Compare September 2, 2026 19:58
gkevinzheng and others added 3 commits September 2, 2026 14:58
**Changes made:**

- Refactored `_MappableAttributesMixin` to `helpers.py` for use in
`RowRange`.
- Used `RowRange` and `ReadRowsQuery` from the data client as backing
data sources for `RowRange` and `RowSet` respectively.
@daniel-sanche
daniel-sanche force-pushed the shim/09-read-rows-row-set branch from 69703c3 to 8bbec4e Compare September 2, 2026 21:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants