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 - Allow set/get of com.google.cloud.spanner.Value · Issue #1838 · googleapis/google-cloud-java

Spanner - Allow set/get of com.google.cloud.spanner.Value #1838

New issue
Copy link
New issue
Copy link
Closed
Closed
Spanner - Allow set/get of com.google.cloud.spanner.Value#1838
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

@sai-pullabhotla
sai-pullabhotla
opened on Mar 30, 2017
Issue body actions

Is it possible to add methods to respective interfaces and classes to get/set instances of com.google.cloud.spanner.Value in addition to the distinct types that are currently supported?

For example - ResultSet.getValue() and ValueBinder.to(Value v)

Activity

  1. garrettjonesgoogle
    assigned
    vkedia
    on Mar 30, 2017
  2. 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 30, 2017
  3. vkedia commented on Mar 31, 2017

    @vkedia
    vkedia
    on Mar 31, 2017
    More actions

    @sai-pullabhotla Can you please describe you use case. Why do you need these methods?

  4. sai-pullabhotla commented on Apr 1, 2017

    @sai-pullabhotla
    sai-pullabhotla
    on Apr 1, 2017
    Author
    More actions

    @vkedia - the purpose is to have a generic way to set/get data using an interface or generic type. I'm in the process of developing a ORM framework similar to the one I did for Cloud Datastore (Catatumbo), and having these methods would help with mapping types defined in the domain model to Spanner and vice versa. See Mapper for more info on how the mapping was done in Catatumbo, hoping to do the same for Spanner and having these methods would help. I also see another issue, #1805, which appears to be similar to what I'm asking for.

    Moreover, the API already does this internally to convert the distinct types to Value objects, so just need to expose a public method. Snippet from ValueBinder is below:

      public R to(@Nullable String value) {
        return handle(Value.string(value));
      }
    
    
  5. vkedia commented on Apr 3, 2017

    @vkedia
    vkedia
    on Apr 3, 2017
    More actions

    @sai-pullabhotla Thanks. This sounds interesting. So if we had a to(Value) you would still need to figure out what type of Value to create, right? So it is not complete generic?

  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. 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.

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

    chore(main): release 3.23.1 (#1838)

    674ac3d
  11. chingor13
    added a commit that references this issue on Jan 22, 2026

    chore(deps): update dependency com.google.cloud:google-cloud-datastor…

    0808d9a
  12. chingor13
    added a commit that references this issue on Feb 24, 2026

    chore(main): release 1.41.0 (#1838)

    6760c0f
  13. suztomo
    added a commit that references this issue on Mar 11, 2026

    chore(main): release 3.23.1 (googleapis#1838)

    d26dfa6
  14. chingor13
    added a commit that references this issue on Mar 12, 2026

    chore(main): release 1.41.0 (#1838)

    b562291
  15. lqiu96
    added a commit that references this issue on Mar 20, 2026

    chore(deps): update dependency com.google.cloud:google-cloud-datastor…

    82b5adc
  16. suztomo
    added a commit that references this issue on Mar 23, 2026

    deps: update dependency org.springframework.boot:spring-boot to v3.4.0 (

    5fea8fc
  17. meltsufin
    added 5 commits that reference this issue on Apr 29, 2026

    feat: add `use_table_schema` field to BigQueryConfig (#1838)

    8653f4f

    chore(main): release 1.133.0 (#2206)

    a3b6539

    feat: add `use_table_schema` field to BigQueryConfig (#1838)

    26d3a52

    chore(main): release 1.133.0 (#2206)

    1180af9

    chore(deps): update dependency com.google.cloud:libraries-bom to v26.…

    ee942ff
  18. benjaminp
    added 2 commits that reference this issue on Jul 13, 2026

    deps: update dependency com.google.cloud:google-cloud-monitoring-bom …

    14d2711

    chore(main): release 2.25.0 (googleapis#1828)

    dd65452
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.