Skip to content

Commit

Permalink
sql/importer: Fix BenchmarkConvertToKVs
Browse files Browse the repository at this point in the history
Set `cluster.MakeTestingClusterSettings()` in `eval.Context` Settings for
`BenchmarkConvertToKVs` to execute successfully.

Fixes: cockroachdb#95052

Release justification: test-only change.
Release note: None
  • Loading branch information
herkolategan authored and kvoli committed Jan 17, 2023
1 parent 2e3f354 commit 1db2363
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/sql/importer/bench_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 1db2363

Please sign in to comment.