feat(bigtable): Add support for reverse scans (#8755)

* feat: add more expressive range api

* feat(bigtable): Add support for reverse scans

* resolve feature flag conflict after merge

* add a new constructor for chunkReader to avoid line noise

* remove orphaned code

* fix typo

* adding a first test

* extended RowRange to express bound types

* adding unit tests

* correcting backwards compatability behavior

* adding test proxy support for reverse scan

* added todo reminder

* all unit tests pass

* updated naming

* fix retries on reverse scan

* more tests

* exposing client messages to test proxy
formatting

* exposing client messages to test proxy
formatting

* fixing vet errors

* minor style tweaks

* changing error message to be consistent with java and cpp

* cleaning up code and adding tests

* simplify RowRange valid logic

* rolling back test proxy changes

* rolling back test proxy

* changed default bound type for better backwards compatability
rolled back some integration test changes to ensure backwards compatability

---------

Co-authored-by: Igor Berntein <igorbernstein@google.com>
5 files changed
tree: 673004675795381ff31c5abd1e3732036bdda89c
  1. .devcontainer/
  2. .github/
  3. accessapproval/
  4. accesscontextmanager/
  5. advisorynotifications/
  6. ai/
  7. aiplatform/
  8. alloydb/
  9. analytics/
  10. apigateway/
  11. apigeeconnect/
  12. apigeeregistry/
  13. apikeys/
  14. appengine/
  15. area120/
  16. artifactregistry/
  17. asset/
  18. assuredworkloads/
  19. auth/
  20. automl/
  21. baremetalsolution/
  22. batch/
  23. beyondcorp/
  24. bigquery/
  25. bigtable/
  26. billing/
  27. binaryauthorization/
  28. certificatemanager/
  29. channel/
  30. civil/
  31. cloudbuild/
  32. clouddms/
  33. cloudtasks/
  34. commerce/
  35. compute/
  36. confidentialcomputing/
  37. config/
  38. contactcenterinsights/
  39. container/
  40. containeranalysis/
  41. datacatalog/
  42. dataflow/
  43. dataform/
  44. datafusion/
  45. datalabeling/
  46. dataplex/
  47. dataproc/
  48. dataqna/
  49. datastore/
  50. datastream/
  51. debugger/
  52. deploy/
  53. dialogflow/
  54. discoveryengine/
  55. dlp/
  56. documentai/
  57. domains/
  58. edgecontainer/
  59. errorreporting/
  60. essentialcontacts/
  61. eventarc/
  62. filestore/
  63. firestore/
  64. functions/
  65. gkebackup/
  66. gkeconnect/
  67. gkehub/
  68. gkemulticloud/
  69. grafeas/
  70. gsuiteaddons/
  71. httpreplay/
  72. iam/
  73. iap/
  74. ids/
  75. internal/
  76. iot/
  77. kms/
  78. language/
  79. lifesciences/
  80. logging/
  81. longrunning/
  82. managedidentities/
  83. maps/
  84. mediatranslation/
  85. memcache/
  86. metastore/
  87. migrationcenter/
  88. monitoring/
  89. netapp/
  90. networkconnectivity/
  91. networkmanagement/
  92. networksecurity/
  93. notebooks/
  94. optimization/
  95. orchestration/
  96. orgpolicy/
  97. osconfig/
  98. oslogin/
  99. phishingprotection/
  100. policysimulator/
  101. policytroubleshooter/
  102. privatecatalog/
  103. profiler/
  104. pubsub/
  105. pubsublite/
  106. rapidmigrationassessment/
  107. recaptchaenterprise/
  108. recommendationengine/
  109. recommender/
  110. redis/
  111. resourcemanager/
  112. resourcesettings/
  113. retail/
  114. rpcreplay/
  115. run/
  116. scheduler/
  117. secretmanager/
  118. securesourcemanager/
  119. security/
  120. securitycenter/
  121. servicecontrol/
  122. servicedirectory/
  123. servicemanagement/
  124. serviceusage/
  125. shell/
  126. shopping/
  127. spanner/
  128. speech/
  129. storage/
  130. storageinsights/
  131. storagetransfer/
  132. support/
  133. talent/
  134. texttospeech/
  135. third_party/
  136. tpu/
  137. trace/
  138. translate/
  139. video/
  140. videointelligence/
  141. vision/
  142. vmmigration/
  143. vmwareengine/
  144. vpcaccess/
  145. webrisk/
  146. websecurityscanner/
  147. workflows/
  148. workstations/
  149. .gitignore
  150. .release-please-manifest-individual.json
  151. .release-please-manifest-submodules.json
  152. .release-please-manifest.json
  153. CHANGES.md
  154. CODE_OF_CONDUCT.md
  155. CONTRIBUTING.md
  156. debug.md
  157. doc.go
  158. go.mod
  159. go.sum
  160. go.work
  161. go.work.sum
  162. LICENSE
  163. migration.md
  164. README.md
  165. release-please-config-individual.json
  166. release-please-config-yoshi-submodules.json
  167. release-please-config.json
  168. RELEASING.md
  169. SECURITY.md
  170. testing.md
README.md

Google Cloud Client Libraries for Go

Go Reference

Go packages for Google Cloud Platform services.

import "cloud.google.com/go"

To install the packages on your system, do not clone the repo. Instead:

  1. Change to your project directory: cd /my/cloud/project
  2. Get the package you want to use. Some products have their own module, so it's best to go get the package(s) you want to use:
go get cloud.google.com/go/firestore # Replace with the package you want to use.

NOTE: Some of these packages are under development, and may occasionally make backwards-incompatible changes.

Supported APIs

For an updated list of all of our released APIs please see our reference docs.

Go Versions Supported

Our libraries are compatible with at least the three most recent, major Go releases. They are currently compatible with:

  • Go 1.21
  • Go 1.20
  • Go 1.19

Authorization

By default, each API will use Google Application Default Credentials for authorization credentials used in calling the API endpoints. This will allow your application to run in many environments without requiring explicit configuration.

client, err := storage.NewClient(ctx)

To authorize using a JSON key file, pass option.WithCredentialsFile to the NewClient function of the desired package. For example:

client, err := storage.NewClient(ctx, option.WithCredentialsFile("path/to/keyfile.json"))

You can exert more control over authorization by using the golang.org/x/oauth2 package to create an oauth2.TokenSource. Then pass option.WithTokenSource to the NewClient function:

tokenSource := ...
client, err := storage.NewClient(ctx, option.WithTokenSource(tokenSource))

Contributing

Contributions are welcome. Please, see the CONTRIBUTING document for details.

Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms. See Contributor Code of Conduct for more information.

Links