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

Support multiple mutations to one row #1507

Open
teststaybaka opened this issue Oct 29, 2024 · 1 comment
Open

Support multiple mutations to one row #1507

teststaybaka opened this issue Oct 29, 2024 · 1 comment
Labels
api: bigtable Issues related to the googleapis/nodejs-bigtable API. priority: p3 Desirable enhancement or fix. May not be included in next release. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.

Comments

@teststaybaka
Copy link

Is your feature request related to a problem? Please describe.

I checked all examples and documentations but it seems I can't increment multiple columns and at the same time set other columns. I know that mutating one row is transactional which is what I'm trying to leverage.

The Java client's library seems more versatile as documented in https://cloud.google.com/bigtable/docs/aggregates#add-examples.

Checking the code, it seems this part

if (this.method === Mutation.methods.INSERT) {
suggest that only "insert" and "delete" mutations are supported.

The Row.increment() was using the ReadModifyWriteRow RPC but MutateRow RPC appears to be more versatile.

Describe the solution you'd like

Instead of setting method in Mutation class, nesting another SubMutation (tentative) class with method to mimic the Mutation proto https://cloud.google.com/bigtable/docs/reference/data/rpc/google.bigtable.v2#mutation.

@teststaybaka teststaybaka added priority: p3 Desirable enhancement or fix. May not be included in next release. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design. labels Oct 29, 2024
@product-auto-label product-auto-label bot added the api: bigtable Issues related to the googleapis/nodejs-bigtable API. label Oct 29, 2024
@airhorns
Copy link

airhorns commented Nov 2, 2024

It'd be really great to get support for this!

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/nodejs-bigtable API. priority: p3 Desirable enhancement or fix. May not be included in next release. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.
Projects
None yet
Development

No branches or pull requests

2 participants