Skip to content

opt: turn optimizer on in schema changer #39364

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

Merged
merged 1 commit into from
Aug 6, 2019

Conversation

RaduBerinde
Copy link
Member

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

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
@RaduBerinde RaduBerinde requested a review from andreimatei August 6, 2019 17:52
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@RaduBerinde
Copy link
Member Author

This feels pretty fragile.. Maybe the right thing to do would be to call something like resetSessionVars?

Copy link
Contributor

@andreimatei andreimatei left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

resetSessionVars() also sounds good to me (if it doesn't break anything :P )

Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained (waiting on @andreimatei)

@RaduBerinde
Copy link
Member Author

I'll merge this as is for now.

bors r+

craig bot pushed a commit that referenced this pull request Aug 6, 2019
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 <[email protected]>
@craig
Copy link
Contributor

craig bot commented Aug 6, 2019

Build succeeded

@craig craig bot merged commit d91e8ca into cockroachdb:master Aug 6, 2019
@RaduBerinde RaduBerinde deleted the opt-on-schema-changer branch August 7, 2019 00:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants