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: add value_bitmask_filter to the read API by parthea · Pull Request #16898 · googleapis/google-cloud-python

Conversation

@parthea

@parthea parthea commented Apr 30, 2026 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor

This PR was created outside of librarian due to b/501132869. b/501132869 should be resolved soon. In the meantime, we need to publish value_bitmask_filter to avoid blocking other teams.

Steps used to create this PR

  • Clone googleapis/googleapis and checkout the last generated commit a6cbf809c4c165e618ee23a059442af90a80a0f5 which matches what we have in .librarian/state.yaml

google-cloud-python/.librarian/state.yaml

Line 1169 in 8fa0f81

last_generated_commit: a6cbf809c4c165e618ee23a059442af90a80a0f5

  • Apply this diff
(py392) partheniou@partheniou-vm-3:~/git/googleapis$ git diff
diff --git a/google/bigtable/v2/data.proto b/google/bigtable/v2/data.proto
index 8320a0c22f..af354b05a2 100644
--- a/google/bigtable/v2/data.proto
+++ b/google/bigtable/v2/data.proto
@@ -255,6 +255,15 @@ message ValueRange {
   }
 }
 
+// Restricts the output to cells whose values match the given bitmask.
+message ValueBitmask {
+  // Required. Mask applied to the value.
+  // Evaluated as: `(value & mask) == mask`
+  // The mask length must exactly match the value length, otherwise the cell is
+  // not considered a match.
+  bytes mask = 1 [(google.api.field_behavior) = REQUIRED];
+}
+
 // Takes a row as input and produces an alternate view of the row based on
 // specified rules. For example, a RowFilter might trim down a row to include
 // just the cells from columns matching a given regular expression, or might
@@ -514,6 +523,12 @@ message RowFilter {
     // will be applied to separate copies of the input. This may be relaxed in
     // the future.
     string apply_label_transformer = 19;
+
+    // Matches only cells with values that satisfy the condition `(value & mask)
+    // == mask`.
+    // The mask length must exactly match the value length, otherwise the cell
+    // is not considered a match.
+    ValueBitmask value_bitmask_filter = 20;
   }
 }
  • Clone this repo. Checkout commit 6cb5af5227e09e99ee12bb3542374f683b75d4b4 which is the last commit where generation was run:
    https://github.com/googleapis/google-cloud-python/commits/main/packages/google-cloud-bigtable

  • Run legacylibrarian generate --api-source=<path/to/clone/of/googleapis> --library=google-cloud-bigtable to regenerate the library using the local version of googleapis

  • Revert changes to .librarian/state.yaml

Closes #16884

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
@parthea
feat: add value_bitmask_filter to the read API
30ba376
gemini-code-assist[bot]
gemini-code-assist Bot reviewed Apr 30, 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 introduces the ValueBitmask message type to the Bigtable V2 API, enabling bitmask-based cell value filtering. The new ValueBitmask class is defined in data.py and integrated into the RowFilter message as a value_bitmask_filter field within the filter oneof. Corresponding exports and imports have been updated across the package to support this new functionality. I have no feedback to provide.

Sorry, something went wrong.

Uh oh!

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

All reactions
@parthea
parthea marked this pull request as ready for review April 30, 2026 18:31
@parthea
parthea requested a review from a team as a code owner April 30, 2026 18:31
@parthea
parthea enabled auto-merge (squash) April 30, 2026 18:40
daniel-sanche
daniel-sanche approved these changes Apr 30, 2026
View reviewed changes
@parthea
parthea merged commit 5060696 into main Apr 30, 2026
24 checks passed

Uh oh!

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

@parthea
parthea deleted the add-bigtable-value_bitmask_filter branch April 30, 2026 19:08
@release-please release-please Bot mentioned this pull request Jul 15, 2026
chore(main): release google-cloud-bigtable 0.1.0 #17719
Closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@daniel-sanche daniel-sanche daniel-sanche 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.

2 participants

@parthea @daniel-sanche
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.