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 — Serializing Spanner Mutations · Issue #1871 · googleapis/google-cloud-java

Serializing Spanner Mutations  #1871

New issue
Copy link
New issue
Copy link
Closed
Closed
Serializing Spanner Mutations #1871
Copy link
Assignees
mairbek
Labels
api: spannerIssues related to the Spanner API.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

Description

@mairbek
mairbek
opened on Apr 6, 2017
Issue body actions

For Apache Beam support we need to serialize/deserialize Mutations. See apache/beam#2166

Few options

  • Make Mutation#toProto public https://github.com/GoogleCloudPlatform/google-cloud-java/blob/master/google-cloud-spanner/src/main/java/com/google/cloud/spanner/Mutation.java#L337 and add corresponding fromProto method.
  • Make Mutation serializable and implement writeObject/readObject
  • Introduce a new class, move Mutation#toProto code there and implement fromProto.

Activity

  1. vkedia commented on Apr 6, 2017

    @vkedia
    vkedia
    on Apr 6, 2017
    More actions

    I would prefer making Mutation serializable. That seems more idiomatic to me.
    @garrettjonesgoogle is there any precedence for this? Do you have any preference?

  2. garrettjonesgoogle commented on Apr 6, 2017

    @garrettjonesgoogle
    garrettjonesgoogle
    on Apr 6, 2017
    Contributor
    More actions

    Serialization is used widely in google-cloud-java, so it seems like a good idea here.

  3. garrettjonesgoogle
    added
    api: spannerIssues related to the Spanner API.
    type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.
    on Apr 6, 2017
  4. mairbek commented on Apr 19, 2017

    @mairbek
    mairbek
    on Apr 19, 2017
    Author
    More actions

    I've opened a PR #1939.

    This turned out to be harder than I've expected, because type information is lost once spanner Mutation is converted to the Mutation proto.

  5. vkedia
    assigned
    mairbek
    on Apr 20, 2017
  6. vkedia commented on Apr 21, 2017

    @vkedia
    vkedia
    on Apr 21, 2017
    More actions

    Closed by PR #1952

  7. vkedia
    closed this as completedon Apr 21, 2017
  8. chingor13
    added a commit that references this issue on Jan 22, 2026

    chore(main): release 2.29.2-SNAPSHOT (#1871)

    b64a35c
  9. lqiu96
    added a commit that references this issue on Mar 20, 2026

    chore(main): release 2.29.2-SNAPSHOT (#1871)

    3208683
  10. suztomo
    added 2 commits that reference this issue on Mar 23, 2026

    docs: add sample for using array of struct query param (googleapis#1871)

    9e1cec2

    chore(main): release 2.25.3 (googleapis#1877)

    8ef7ea5
  11. chingor13
    added 2 commits that reference this issue on Mar 24, 2026

    chore: Remove Code Coverage requirements (#1871)

    6080fb1

    fix(oauth2): mask sensitive tokens in HTTP logs (#1900)

    3e4ccb7
  12. meltsufin
    added 3 commits that reference this issue on Apr 29, 2026

    chore(main): release 1.126.1 (#1871)

    daaf9e3

    chore(main): release 1.126.1 (#1871)

    a83d9dc

    deps: update dependency com.google.cloud:sdk-platform-java-config to …

    adb78c3
  13. benjaminp
    added a commit that references this issue on Jul 13, 2026

    chore: Revert "chore: setup 2.23.x lts branch (googleapis#1852)" (goo…

    7739646
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @mairbek
    mairbek

Labels

api: spannerIssues related to the Spanner API.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

    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.