From 4529ad3ceb883dd40fe5bc97ed2279870f3e2554 Mon Sep 17 00:00:00 2001 From: larkee Date: Thu, 6 Aug 2020 13:20:46 +1000 Subject: [PATCH] feat: add query stats package (via synth) --- google/cloud/spanner_v1/proto/spanner.proto | 6 ++++ synth.metadata | 35 +++++++++++++++++++-- 2 files changed, 38 insertions(+), 3 deletions(-) diff --git a/google/cloud/spanner_v1/proto/spanner.proto b/google/cloud/spanner_v1/proto/spanner.proto index 93e4987ed16..73ed34432fb 100644 --- a/google/cloud/spanner_v1/proto/spanner.proto +++ b/google/cloud/spanner_v1/proto/spanner.proto @@ -438,9 +438,15 @@ message ExecuteSqlRequest { // SPANNER_SYS.SUPPORTED_OPTIMIZER_VERSIONS. Executing a SQL statement // with an invalid optimizer version will fail with a syntax error // (`INVALID_ARGUMENT`) status. + // See + // https://cloud.google.com/spanner/docs/query-optimizer/manage-query-optimizer + // for more information on managing the query optimizer. // // The `optimizer_version` statement hint has precedence over this setting. string optimizer_version = 1; + + // Statistics package to use. Empty to use the database default. + string optimizer_statistics_package = 2; } // Mode in which the statement must be processed. diff --git a/synth.metadata b/synth.metadata index df4ded371b6..bdae53cbe4e 100644 --- a/synth.metadata +++ b/synth.metadata @@ -4,21 +4,50 @@ "git": { "name": ".", "remote": "git@github.com:larkee/python-spanner.git", - "sha": "3e54af6f8582e9620afb704e1d08994eab12c365" + "sha": "891077105d5093a73caf96683d10afef2cd17823" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "2686d7075fa456972bf4d08680d99617f5eb32b1" + "sha": "4530cc6ff080ef8aca258c1ec92c4db10a1bbfb4" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "2686d7075fa456972bf4d08680d99617f5eb32b1" + "sha": "4530cc6ff080ef8aca258c1ec92c4db10a1bbfb4" + } + } + ], + "destinations": [ + { + "client": { + "source": "googleapis", + "apiName": "spanner", + "apiVersion": "v1", + "language": "python", + "generator": "bazel" + } + }, + { + "client": { + "source": "googleapis", + "apiName": "spanner_admin_instance", + "apiVersion": "v1", + "language": "python", + "generator": "bazel" + } + }, + { + "client": { + "source": "googleapis", + "apiName": "spanner_admin_database", + "apiVersion": "v1", + "language": "python", + "generator": "bazel" } } ]