Repository navigation
Conversation
There was a problem hiding this comment.
Code Review
This pull request upgrades the Go runtime version to 1.26.0 and updates several project dependencies, including Google Cloud libraries and OpenTelemetry. It also updates the OpenTelemetry semantic conventions import to v1.43.0. Furthermore, it adds support and documentation for Spanner Graph queries within the Cloud Gemini Data Analytics tool, along with a corresponding unit test. There are no review comments, so I have no feedback to provide.
|
/gcbrun |
…raphIds Bump cloud.google.com/go/geminidataanalytics from v1.5.0 to v1.8.0, the first release whose v1beta protos define SpannerDatabaseReference.graph_ids, so a cloud-gemini-data-analytics-query tool can set graphIds in its spannerReference and have QueryData generate GQL over Spanner Graph. Also add a TestParseFromYaml case for graphIds and document the field.
1fb5a44 to
2d10084
Compare
|
Thanks @helloeve! I've rebased onto main after #4418, so this PR is now just the SDK bump plus test and docs (#4418 already included the |
|
/gcbrun |
there seems to be a lot of dependencies get a bumped version, are they all needed? |
|
Good question! Yes, they're all needed. I ran
Pinning any of them lower would need |
Description
Bumps
cloud.google.com/go/geminidataanalyticsfrom v1.5.0 to v1.8.0, the first release whose v1beta protos defineSpannerDatabaseReference.graph_ids. Thecloud-gemini-data-analytics-querytool decodescontextstraight into these protos withprotojson, which rejects unknown fields, so on v1.5.0 agraphIdsentry fails at config load. After this bump a tool can point QueryData at Spanner Graph property graphs, and the API generates GQL over them:Follows the same pattern as #4136 (Bigtable/Firestore references) and #3920.
Changes
go.mod/go.sum: bump to v1.8.0 (go getwithout-u, thengo mod tidy, on top of chore(deps): upgrade Go to 1.27.3 and bump CVE-affected dependencies #4418). The other version changes are the minimums v1.8.0's module graph requires (gax-go,google.golang.org/api, grpc, genproto, OpenTelemetry v1.47.0,golang.org/x/*, ...). The OpenTelemetry SDK stays on thesemconvv1.43.0 schema that chore(deps): upgrade Go to 1.27.3 and bump CVE-affected dependencies #4418 already switchedinternal/telemetryto.internal/tools/cloudgda/cloudgda_test.go:TestParseFromYamlcase forgraphIds.docs/en/integrations/cloudgda/tools/cloud-gda-query.md: documentgraphIdsin thedatabaseReferencetable and add a Spanner Graph example.Compatibility
QueryDataContext, orGenerationOptionsprotos between v1.5.0 and v1.8.0, so existing configs keep loading.QueryDataResponse.token_usage, sotokenUsagenow shows up in the tool result when the API returns it. feat(tool/cloud-gemini-data-analytics-query): return QueryData token usage and debug info as result metadata (_meta) #4274 moves it into_meta; whichever of the two lands second only needs a rebase.Testing
go build ./...go test ./internal/... ./cmd/...golangci-lint run(latest, repo config) on the touched packages: 0 issuesgofmt/go veton the touched packagesPR Checklist
CONTRIBUTING.md
bug/issue
before writing your code! (No issue filed; small follow-up in the same shape as feat(tool/cloud-gemini-data-analytics-query): support Bigtable and Firestore references #4136. Happy to open one if preferred.)
review
!if this involve a breaking change (not breaking)Drafted with an AI coding agent (Jetski) on behalf of the author.