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 — Implement Bigtable v2 API · Issue #1850 · googleapis/google-cloud-python

Implement Bigtable v2 API #1850

New issue
Copy link
New issue
Copy link
Closed
Closed
Implement Bigtable v2 API#1850
Copy link
Assignees
tseaver
Labels
api: bigtableIssues related to the Bigtable API.

Description

@tseaver
tseaver
opened on Jun 10, 2016
Issue body actions

@dhermes if you can do a braindump here of what you've learned, and then assign to me, that would be great.

Activity

Next
  1. tseaver
    added
    api: bigtableIssues related to the Bigtable API.
    on Jun 10, 2016
  2. tseaver
    assigned
    dhermes
    on Jun 10, 2016
  3. dhermes commented on Jun 10, 2016

    @dhermes
    dhermes
    on Jun 10, 2016
    Contributor
    More actions
    • Only the data API is in v2, the table and cluster admins are still v1
    • The majority of the changes are in ReadRowsResponse.
    • google/bigtable/v2/data.proto is essentially equivalent to google/bigtable/v1/bigtable_data.proto
    • google/bigtable/v2/bigtable.proto is essentially equivalent to google/bigtable/v1/bigtable_service.proto and google/bigtable/v1/bigtable_service_messages.proto combined
    • Some of the inclusive / exclusive fields have changed, but that's somewhat easy to track
    • There is a new method in the v1 Table Admin API that we should implement
  4. garye commented on Jun 21, 2016

    @garye
    garye
    on Jun 21, 2016
    Contributor
    More actions

    Some additional information:

    • Every API is in v2, not just data. See https://github.com/GoogleCloudPlatform/cloud-bigtable-client/tree/master/bigtable-protos/src/main/proto/google/bigtable/admin/v2.
    • ReadRowsResponse has changed quite a bit. Let's talk offline about the implementation and testing.
    • You now connect with project/instance rather than project/zone/cluster. This change is pervasive.
    • All column family operations are consolidated into ModifyColumnFamilies.
    • GC rules can no longer be expressed as strings/expressions
    • MutateRows returns a streaming response
    • ReadRowsRequest allows repeating ranges/sets
  5. sduskis commented on Jun 21, 2016

    @sduskis
    sduskis
    on Jun 21, 2016
    Contributor
    More actions

    I'd guess that MutateRows, bulk delete, and "bulk read" (a set of random row keys) are not in the current python implementation, since they were not there from day one and we added them along the way. They are useful, but not required functionality.

  6. sduskis commented on Jun 21, 2016

    @sduskis
    sduskis
    on Jun 21, 2016
    Contributor
    More actions

    We have a java implementation which processes v2 ReadRowsResponse objects. Hopefully, it can help give some insight into how to use the new API. There's also a json file we use to drive automated tests; we can explain more about it offline.

  7. garye commented on Jun 21, 2016

    @garye
    garye
    on Jun 21, 2016
    Contributor
    More actions

    If we implement happybase's Table.batch then MutateRows would be helpful to leverage, but I agree with Solomon that it's not required.

  8. sduskis commented on Jun 21, 2016

    @sduskis
    sduskis
    on Jun 21, 2016
    Contributor
    More actions

    Yeah, the new MutateRows is pretty awesome. It has a significant performance improvement over MutateRow.

    Anything related to v2 comes first due to time sensitivity. We have a few performance improvement (MutateRows, multiple grpc channels) and reliability (retries) improvements that aren't as time sensitive.

  9. garye commented on Jun 21, 2016

    @garye
    garye
    on Jun 21, 2016
    Contributor
    More actions

    Here's a link to the go read rows implementation.
    https://gist.github.com/garye/4b2ce32f8b6245e1024c7ce0a37b681d

  10. tseaver commented on Jun 23, 2016

    @tseaver
    tseaver
    on Jun 23, 2016
    ContributorAuthor
    More actions

    I've set up a feature branch for this project: I intend to merge PRs to that branch, and then merge that branch to master.

  11. tseaver commented on Jun 23, 2016

    @tseaver
    tseaver
    on Jun 23, 2016
    ContributorAuthor
    More actions

    Reviewing open gcloud-python issues related to Bigtable:

    • Table.rename returns a "not implemented" error (Review Bigtable Table.rename() "not implemented" status when Bigtable API is updated #1289). Is that method actually implemented in V2?
    • Generating code from the new .proto files is a pain (Document / automate(?) building generated files from protobuf specs #1482). Will there be a project published to PyPI containing that code (Start project to publish pb2 generated modules for services we depend on. #1384). E.g., see grpc-google-logging-v2.
  12. sduskis commented on Jun 23, 2016

    @sduskis
    sduskis
    on Jun 23, 2016
    Contributor
    More actions

    RenameTable was removed in v2. While it existed in v1, it was never actually implemented. Good catch.

  13. lesv commented on Jun 23, 2016

    @lesv
    lesv
    on Jun 23, 2016
    More actions

    The protos should be at #1895

  14. garye commented on Jun 23, 2016

    @garye
    garye
    on Jun 23, 2016
    Contributor
    More actions

    #1895 is bogus because it's targeted at master and breaks everything anyways, but at least look at the Makefile change. I fixed the makefile to find grpc_python_plugin wherever it is in your path but there's also a python script that runs and assumes a location, so I ended up copying grpc_python_plugin to the gcloud-python dir before running make generate.

  15. tseaver commented on Jun 23, 2016

    @tseaver
    tseaver
    on Jun 23, 2016
    ContributorAuthor
    More actions

    Setup:

    • Package proto-generated Python code for releaes to PyPI (see Start project to publish pb2 generated modules for services we depend on. #1384). If not feasible, regenerate using the Makefile and check in (see @garye's work on PR Generated protos for bigtable v2. #1895). Generated in Generate code for Bigtable v2 protobufs #1903.
    • Alias V1 imports / factories / endpoints to mark V1 source. Alias Bigtable V1 imports / factories / entry point constants. #1912.

    Port modules to V2 protos:

    • table: drop never-actually-impemented Table.rename. Drop 'Table.rename'. #1908.
    • column_family. update V2 imports, adjust ColumnFamily operations, collapsing three V1 endpoints into a single V2 endpoint. Update bigtable.column_family to use V2 protos #1913
    • row_data: implement new ReadRowResponse semantics. Consult Go implementation, Java implementation, and JSON testcases. Add 'ReadRowsResponseV2' wrapper #1907
    • row_data: clarify handling of V2 ReadRowsResponse error cases. Clarify handling of V2 'ReadRowsResponse' error cases #1915
    • row_data: update V2 imports, fold new RRR logic into PartialRowsData. Convert non-instance-admin protos to Bigtable V2 #1919
    • row_filters: update V2 imports, adjust spelling for range boundaries: exclusive -> open, inclusive -> closed. Convert non-instance-admin protos to Bigtable V2 #1919
    • table: update V2 imports. Convert non-instance-admin protos to Bigtable V2 #1919
    • cluster -> new module, instance, updating paths from project/zone/cluster -> project/instance. Support V2 instance admin #1923
    • client: add instance-related stubs, methods. Support V2 instance admin #1923
    • client: remove cluster-related stubs, methods Support V2 instance admin #1923
    • Sync from final version of V2 protos (see Regenerate Bigtable V2 protos #1918). Regenerate from final Bigtable v2 v2 protos #1925
    • client: update admin API endpoint configuration. Remaining V2 cleanups #1926
    • client: add list_instances method. Remaining V2 cleanups #1926
    • Clean ups. Remaining V2 cleanups #1926

    System testing

    • Update system tests to fit V2 patterns. Bigtable system tests passing against V2 endpoints #1930
    • Verify that Happybase system tests pass. Convert gcloud.bigtable.happybase to V2 patterns #1931

    FInalize

    • Merge bigtable-v2 branch to master. Land Bigtable v2 #1932
    • Make a 0.17.0 release from master. Prepare 0.17.0 release. #1940

    Open issues:

    • Regenerating correct code from V2 protos. Regenerate Bigtable V2 protos #1918, and also grpc_python_plugin generates an empty import line grpc/grpc#7101
    • Instance creation requires explicit cluster configuration. V2 instance creation requires explicit cluster information #1929
  16. 6 remaining items

  17. garye commented on Jun 24, 2016

    @garye
    garye
    on Jun 24, 2016
    Contributor
    More actions

    I don't know the python protobuf APIs, but it looks like there are other
    things like MergeFromString and
    https://developers.google.com/protocol-buffers/docs/reference/python/google.protobuf.text_format-module
    that
    might be an alternative?

    On Fri, Jun 24, 2016 at 6:47 PM Tres Seaver [email protected]
    wrote:

    FWIW chunk_pb looks like a normal protobuf to me:

    chunk_pbu'row_key: "RK"\nfamily_name: <\n value: "A"\n>\nqualifier: <\n value: "C"\n>\ntimestamp_micros: 100\nvalue: "value-VAL"\ncommit_row: false\n'

    —
    You are receiving this because you were mentioned.
    Reply to this email directly, view it on GitHub
    #1850 (comment),
    or mute the thread
    https://github.com/notifications/unsubscribe/AACTrxVOI57u76RL9I8H0HuvO76ETezmks5qPF6JgaJpZM4IzHp2
    .

  18. tseaver commented on Jun 24, 2016

    @tseaver
    tseaver
    on Jun 24, 2016
    ContributorAuthor
    More actions

    I missed that those chunks are rendered using text_format. The following works to parse one:

    >>> from google.protobuf.text_format import Merge
    >>> Merge(chunk_pb, chunk)
  19. garye commented on Jun 25, 2016

    @garye
    garye
    on Jun 25, 2016
    Contributor
    More actions

    Ah, sorry we should have mentioned. Glad it's working.

    On Fri, Jun 24, 2016, 7:42 PM Tres Seaver [email protected] wrote:

    I missed that those chunks are rendered using text_format. The following
    works to parse one:

    from google.protobuf.text_format import Merge>>> Merge(chunk-pb, chunk)

    —
    You are receiving this because you were mentioned.
    Reply to this email directly, view it on GitHub
    #1850 (comment),
    or mute the thread
    https://github.com/notifications/unsubscribe/AACTr_aJj9nYMKbaxSozdpfXCoqTXtZnks5qPGtdgaJpZM4IzHp2
    .

  20. tseaver commented on Jun 27, 2016

    @tseaver
    tseaver
    on Jun 27, 2016
    ContributorAuthor
    More actions

    @garye Am I meant to neglect the google.bigtable.v2.instance.Instance.cluster and related messages?

  21. garye commented on Jun 27, 2016

    @garye
    garye
    on Jun 27, 2016
    Contributor
    More actions

    @tseaver You mean for cluster administration?

  22. tseaver commented on Jun 27, 2016

    @tseaver
    tseaver
    on Jun 27, 2016
    ContributorAuthor
    More actions

    Yes -- am I supposed to be exposing the methods to manipulate clusters within an instance?

  23. sduskis commented on Jun 27, 2016

    @sduskis
    sduskis
    on Jun 27, 2016
    Contributor
    More actions

    We don't do that in go or Java. I would think Happybase doesn't have a way to manage clusters in v1 or instances in v2, since HBase doesn't have any similar concepts. If there isn't currently a way to do cluster management, we should not add new functionality.

  24. tseaver commented on Jun 27, 2016

    @tseaver
    tseaver
    on Jun 27, 2016
    ContributorAuthor
    More actions

    @sduskis I was just asking because gcloud.python exposed cluster managment APIs for V1: if they aren't relevant for V2, cool (they are defined right next to the V2 instance management APIs, which is which is what made me ask).

  25. sduskis commented on Jun 27, 2016

    @sduskis
    sduskis
    on Jun 27, 2016
    Contributor
    More actions

    Thanks for clarifying. I'd guess we need to expose operations that are similar to the way the GCP console operates. There is a ClusterService for some operations like resizing a cluster or changing the display name. I don't know enough about that. I'll ping the group to find out more about this.

    The bottom line is that we need parity with the existing functionality in gcloud.python through the new APIs.

  26. tseaver
    closed this as completedon Jul 1, 2016
  27. theacodes
    unassigned
    dhermes
    on Sep 28, 2018
  28. JustinBeckwith
    assigned
    tseaver
    on Feb 1, 2021
  29. parthea
    added a commit that references this issue on Sep 22, 2023

    Lib version update for Video Intelligence API [(#1850)](GoogleCloudPl…

    7a5311a
  30. parthea
    added a commit that references this issue on Mar 6, 2026

    chore(main): release 3.20.0 (#1850)

    6d3ed9d
  31. parthea
    added a commit that references this issue on Apr 1, 2026

    refactor: provide infrastructure for SQLGlot scalar compiler (#1850)

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

Metadata

Metadata

Assignees

  • @tseaver
    tseaver

Labels

api: bigtableIssues related to the Bigtable API.

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.