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: remove 'experimental_always' as an option for vectorize cluster setting #39285

Merged
merged 1 commit into from
Aug 5, 2019

Conversation

yuzefovich
Copy link
Member

If we allow such thing, then it is quite painful to reset the
cluster setting. It is also quite tricky to allow the corresponding
query to go around the vectorized engine when the vectorize cluster
setting is 'experimental_vectorize` even if the session variable is
'off' because the internal executor uses the cluster setting.

Release note: None

@cockroach-teamcity
Copy link
Member

This change is Reviewable

@yuzefovich yuzefovich requested a review from a team August 3, 2019 05:16
Copy link
Member

@jordanlewis jordanlewis left a comment

Choose a reason for hiding this comment

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

What about just removing the "experimental_always" setting from the cluster setting?

@yuzefovich yuzefovich force-pushed the vec-cluster-setting branch 2 times, most recently from 092a314 to c16b7e3 Compare August 4, 2019 01:13
@yuzefovich yuzefovich changed the title sql: prohibit 'experimental_always' as vectorize cluster setting sql: remove 'experimental_always' as an option for vectorize cluster setting Aug 4, 2019
@yuzefovich
Copy link
Member Author

I didn't even realize it was an option! Thanks, it's a lot cleaner this way.

Also, is there a way to "advertise" experimental_always as a session variable since it's no longer included in the generated settings.html?

Copy link
Member

@jordanlewis jordanlewis left a comment

Choose a reason for hiding this comment

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

LGTM - I'm not sure if there's a particular way to "advertise" the setting besides normal documentation.

…setting

If we allow such thing, then it is quite painful to reset the
cluster setting. It is also quite tricky to allow the corresponding
query to go around the vectorized engine when the vectorize cluster
setting is 'experimental_vectorize` even if the session variable is
'off' because the internal executor uses the cluster setting.

Release note: None
@yuzefovich
Copy link
Member Author

I guess if someone really wants to use experimental_always, they will know about this option.

TFTR!

bors r+

craig bot pushed a commit that referenced this pull request Aug 5, 2019
39285: sql: remove 'experimental_always' as an option for vectorize cluster setting r=yuzefovich a=yuzefovich

If we allow such thing, then it is quite painful to reset the
cluster setting. It is also quite tricky to allow the corresponding
query to go around the vectorized engine when the vectorize cluster
setting is 'experimental_vectorize` even if the session variable is
'off' because the internal executor uses the cluster setting.

Release note: None

Co-authored-by: Yahor Yuzefovich <yahor@cockroachlabs.com>
@craig
Copy link
Contributor

craig bot commented Aug 5, 2019

Build succeeded

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