From c1d19fb80bf3a59e604301b81a3aa31e5959d918 Mon Sep 17 00:00:00 2001 From: Herko Lategan Date: Wed, 11 Jan 2023 14:02:01 +0200 Subject: [PATCH] sql/importer: Fix BenchmarkConvertToKVs Set `cluster.MakeTestingClusterSettings()` in `eval.Context` Settings for `BenchmarkConvertToKVs` to execute successfully. Fixes: #95052 Release justification: test-only change. Release note: None --- pkg/sql/importer/bench_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/sql/importer/bench_test.go b/pkg/sql/importer/bench_test.go index 969c6db786f6..d1ca0c87259e 100644 --- a/pkg/sql/importer/bench_test.go +++ b/pkg/sql/importer/bench_test.go @@ -98,6 +98,7 @@ func benchmarkConvertToKVs(b *testing.B, g workload.Generator) { evalCtx := &eval.Context{ SessionDataStack: sessiondata.NewStack(&sessiondata.SessionData{}), Codec: keys.SystemSQLCodec, + Settings: cluster.MakeTestingClusterSettings(), } semaCtx := tree.MakeSemaContext() return wc.Worker(ctx, evalCtx, &semaCtx)