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

sql: default index recommendations to be off for logic tests #74159

Merged
merged 2 commits into from
Dec 21, 2021

Conversation

nehageorge
Copy link

@nehageorge nehageorge commented Dec 21, 2021

sql: refactor GlobalDefault for session variables

This commit refactors pkg/sql/vars.go to use globalFalse and
globalTrue as the setting GlobalDefault where possible.

Release note: None

sql: default index recommendations to be off for logic tests

This commit configures index recommendations to be off for logic tests.
This is to avoid flaky tests, as the index recommendation output can
vary depending on the best plan chosen by the optimizer.

Fixes: #74069.

Release note: None

This commit refactors `pkg/sql/vars.go` to use globalFalse and
globalTrue as the setting GlobalDefault where possible.

Release note: None
@nehageorge nehageorge requested a review from a team as a code owner December 21, 2021 17:29
@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Collaborator

@mgartner mgartner left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewed 1 of 1 files at r1, 43 of 43 files at r2, all commit messages.
Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @rafiss)

This commit configures index recommendations to be off for logic tests.
This is to avoid flaky tests, as the index recommendation output can
vary depending on the best plan chosen by the optimizer.

Fixes: cockroachdb#74069.

Release note: None
@nehageorge nehageorge force-pushed the disable-index-rec-url branch from da3be4e to 452515e Compare December 21, 2021 18:24
@nehageorge
Copy link
Author

TFTR!

bors r+

@craig
Copy link
Contributor

craig bot commented Dec 21, 2021

This PR was included in a batch that was canceled, it will be automatically retried

@craig
Copy link
Contributor

craig bot commented Dec 21, 2021

Build succeeded:

@craig craig bot merged commit 299abc8 into cockroachdb:master Dec 21, 2021
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.

sql/opt/exec/execbuilder: TestExecBuild failed
3 participants