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 — Spanner - consider adding .set(...).toNull() method · Issue #1804 · googleapis/google-cloud-java

Spanner - consider adding .set(...).toNull() method #1804

New issue
Copy link
New issue
Copy link
Closed
Closed
Spanner - consider adding .set(...).toNull() method#1804
Copy link
Assignees
vkedia
Labels
api: spannerIssues related to the Spanner API.priority: p2Moderately-important priority. Fix may not be included in next release.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.
Milestone
Spanner GA

Description

@saturnism
saturnism
opened on Mar 23, 2017
Issue body actions

Currently setting a field to null requires to call the type-specific .to(...) method for the type. If setting something to null, we need to .set("field").to((String) null)

Consider adding a .set(...).toNull() method

Activity

  1. garrettjonesgoogle
    added
    api: spannerIssues related to the Spanner API.
    type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.
    on Mar 23, 2017
  2. saturnism commented on Mar 24, 2017

    @saturnism
    saturnism
    on Mar 24, 2017
    Author
    More actions

    /cc @emmanuelbernard

  3. saturnism commented on Apr 8, 2017

    @saturnism
    saturnism
    on Apr 8, 2017
    Author
    More actions

    ping @vkedia - this would be really useful. :)

  4. vkedia commented on Apr 20, 2017

    @vkedia
    vkedia
    on Apr 20, 2017
    More actions

    @saturnism I agree this would be useful. But the problem is, the way Value class is designed currently, it needs to know the type of value. So this is not as straightforward as I had initially thought. I am trying think about how to best support this. Would a method like toNull(Type type) be useful?

  5. emmanuelbernard commented on May 3, 2017

    @emmanuelbernard
    emmanuelbernard
    on May 3, 2017
    More actions

    @vkedia hello. I think my main pain point was to guess the type, not to call to(null). So I don't think your proposal toNull(Type type) really solves the core problem.
    But if you really really cannot guess the type on your end and absolutely need one, then your method proposal is at least more generic than the down casting in .to((String) null).

  6. shinfan
    modified the milestone: Spanner GA on May 8, 2017
  7. garrettjonesgoogle
    added
    priority: p2Moderately-important priority. Fix may not be included in next release.
    on May 30, 2017
  8. garrettjonesgoogle
    assigned
    vkedia
    on Aug 11, 2017
  9. yihanzhen commented on Jan 11, 2018

    @yihanzhen
    yihanzhen
    on Jan 11, 2018
    Contributor
    More actions

    The feature request is added to the backlog. The issue will be closed but is linked in the backlog and can continue to be used for comment and discussion.

  10. yihanzhen
    closed this as completedon Jan 11, 2018
  11. meltsufin
    added a commit that references this issue on Dec 22, 2025

    deps: update googleapis/sdk-platform-java action to v2.57.0 (#1804)

    e9a27ec
  12. chingor13
    added a commit that references this issue on Jan 22, 2026

    chore(main): release 2.27.2-SNAPSHOT (#1804)

    b8f7a48
  13. chingor13
    added a commit that references this issue on Feb 24, 2026

    chore(main): release 1.39.2-SNAPSHOT (#1804)

    a9bf3e1
  14. suztomo
    added a commit that references this issue on Mar 11, 2026

    deps: update googleapis/sdk-platform-java action to v2.57.0 (googleap…

    4b5300a
  15. chingor13
    added a commit that references this issue on Mar 12, 2026

    chore(main): release 1.39.2-SNAPSHOT (#1804)

    fae6026
  16. lqiu96
    added a commit that references this issue on Mar 20, 2026

    chore(main): release 2.27.2-SNAPSHOT (#1804)

    d182969
  17. suztomo
    added 2 commits that reference this issue on Mar 23, 2026

    deps: update dependency com.google.cloud:google-cloud-spanner-bom to …

    72da731

    chore(main): release 2.24.0 (googleapis#1794)

    4338f0d
  18. meltsufin
    added 3 commits that reference this issue on Apr 29, 2026

    chore: update graalvm version to 22.3.3 in kokoro cfg files. (#1889) (#…

    e307513

    chore: update graalvm version to 22.3.3 in kokoro cfg files. (#1889) (#…

    330f775

    ci: simplify java 8 unit tests (#1804)

    0f2992a
  19. benjaminp
    added a commit that references this issue on Jul 13, 2026

    chore: Java 8 unit test to build code in Java 17 and run tests on Jav…

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

Metadata

Metadata

Assignees

  • @vkedia
    vkedia

Labels

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

    • Spanner GA

    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.