GoogleCloudPlatform / golang-samples

Sample apps and code written for Google Cloud in the Go programming language.
Apache License 2.0
4.32k stars 1.75k forks source link

feat(firestore): Query explain and explain analyze #4352

Closed bhshkh closed 2 months ago

bhshkh commented 2 months ago

Description

Adding Firestore query explain and explain analyze samples. The build will pass once 1.17.0 has been released. I will merge this PR once https://github.com/googleapis/google-cloud-go/pull/10597 has been merged. This has been tested locally by pointing cloud.google.com/go/firestore to local directory

Checklist

snippet-bot[bot] commented 2 months ago

Here is the summary of changes.

You are about to add 4 region tags. - [firestore/aggregate_query_explain.go:17](https://github.com/bhshkh/golang-samples/blob/55c855d4ac5736fd80843db1da6e42701d9b63da/firestore/aggregate_query_explain.go#L17), tag `firestore_query_explain_aggregation` - [firestore/aggregate_query_explain_analyze.go:17](https://github.com/bhshkh/golang-samples/blob/55c855d4ac5736fd80843db1da6e42701d9b63da/firestore/aggregate_query_explain_analyze.go#L17), tag `firestore_query_explain_analyze_aggregation` - [firestore/query_explain.go:17](https://github.com/bhshkh/golang-samples/blob/55c855d4ac5736fd80843db1da6e42701d9b63da/firestore/query_explain.go#L17), tag `firestore_query_explain_entity` - [firestore/query_explain_analyze.go:17](https://github.com/bhshkh/golang-samples/blob/55c855d4ac5736fd80843db1da6e42701d9b63da/firestore/query_explain_analyze.go#L17), tag `firestore_query_explain_analyze_entity`

This comment is generated by snippet-bot. If you find problems with this result, please file an issue at: https://github.com/googleapis/repo-automation-bots/issues. To update this comment, add snippet-bot:force-run label or use the checkbox below:

telpirion commented 2 months ago

Please be sure to address the errors from vet.