镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content
This repository was archived by the owner on Mar 26, 2026. It is now read-only.
This repository was archived by the owner on Mar 26, 2026. It is now read-only.

Support multiple mutations to one row #1507

Open

Description

@teststaybaka

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.

Activity

  1. added
    priority: p3Desirable enhancement or fix. May not be included in next release.
    type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.
    on Oct 29, 2024
  2. airhorns commented on Nov 2, 2024

    @airhorns

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    api: bigtableIssues related to the googleapis/nodejs-bigtable API.priority: p3Desirable enhancement or fix. May not be included in next release.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions