Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: use 'latest' stats package in samples to prevent build failures #1313

Merged
merged 1 commit into from Jul 26, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -1510,7 +1510,9 @@ static void clientWithQueryOptions(DatabaseId db) {
db, QueryOptions
.newBuilder()
.setOptimizerVersion("1")
.setOptimizerStatisticsPackage("auto_20191128_14_47_22UTC")
// The list of available statistics packages can be found by querying the
// "INFORMATION_SCHEMA.SPANNER_STATISTICS" table.
.setOptimizerStatisticsPackage("latest")
.build())
.build();
Spanner spanner = options.getService();
Expand Down Expand Up @@ -1538,6 +1540,8 @@ static void queryWithQueryOptions(DatabaseClient dbClient) {
.withQueryOptions(QueryOptions
.newBuilder()
.setOptimizerVersion("1")
// The list of available statistics packages can be found by querying the
// "INFORMATION_SCHEMA.SPANNER_STATISTICS" table.
.setOptimizerStatisticsPackage("latest")
.build())
.build())) {
Expand Down