Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
39364: opt: turn optimizer on in schema changer r=RaduBerinde a=RaduBerinde

The schema changer sets up a custom `SessionData`; it wasn't
initializing the `OptimizerMode` field. This change sets it to On
(which is normally the default).

Release note: None

Co-authored-by: Radu Berinde <radu@cockroachlabs.com>
  • Loading branch information
craig[bot] and RaduBerinde committed Aug 6, 2019
2 parents 07d16ab + d91e8ca commit fbf3a6d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/sql/schema_changer.go
Original file line number Diff line number Diff line change
Expand Up @@ -2269,7 +2269,8 @@ func createSchemaChangeEvalCtx(
DataConversion: sessiondata.DataConversionConfig{
Location: dummyLocation,
},
User: security.NodeUser,
User: security.NodeUser,
OptimizerMode: sessiondata.OptimizerOn,
}

evalCtx := extendedEvalContext{
Expand Down

0 comments on commit fbf3a6d

Please sign in to comment.