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

opt: populate autocommit correctly under EXPLAIN #42500

Merged
merged 1 commit into from
Nov 19, 2019

Conversation

RaduBerinde
Copy link
Member

The autocommit decision was made on the entire query. This change
modifies the behavior for EXPLAIN, where we want to pretend that the
query under EXPLAIN is the entire query.

We also add an auto commit field to the EXPLAIN (VERBOSE) output.
We can now test the planning part of auto commit without using traces
(the tests are updated accordingly).

Release note: None

@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Member

@nvanbenschoten nvanbenschoten 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 13 of 13 files at r1.
Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @justinj, @RaduBerinde, and @rytaft)


pkg/sql/opt/exec/execbuilder/testdata/autocommit, line 25 at r1 (raw file):

SET TRACING=OFF

query B

Do you think it's worth keeping these checks as well? They aren't exactly redundant now.

Copy link
Member Author

@RaduBerinde RaduBerinde left a comment

Choose a reason for hiding this comment

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

Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @justinj, @nvanbenschoten, and @rytaft)


pkg/sql/opt/exec/execbuilder/testdata/autocommit, line 25 at r1 (raw file):

Previously, nvanbenschoten (Nathan VanBenschoten) wrote…

Do you think it's worth keeping these checks as well? They aren't exactly redundant now.

I would if we didn't have the other tracing tests, but between those and the planning test these do seem redundant no?

Copy link
Member

@nvanbenschoten nvanbenschoten left a comment

Choose a reason for hiding this comment

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

Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @justinj, @RaduBerinde, and @rytaft)


pkg/sql/opt/exec/execbuilder/testdata/autocommit, line 25 at r1 (raw file):

Previously, RaduBerinde wrote…

I would if we didn't have the other tracing tests, but between those and the planning test these do seem redundant no?

Up to you. I'm fine with it either way.

@RaduBerinde
Copy link
Member Author

bors r+

@craig
Copy link
Contributor

craig bot commented Nov 16, 2019

Build failed

@RaduBerinde
Copy link
Member Author

RaduBerinde commented Nov 16, 2019

Hit #42280

bors r+

@craig
Copy link
Contributor

craig bot commented Nov 16, 2019

Build failed

@RaduBerinde
Copy link
Member Author

ui-test flake

bors r+

@RaduBerinde
Copy link
Member Author

bors r+

@RaduBerinde
Copy link
Member Author

bors r-

@craig
Copy link
Contributor

craig bot commented Nov 18, 2019

Canceled

The autocommit decision was made on the entire query. This change
modifies the behavior for EXPLAIN, where we want to pretend that the
query under EXPLAIN is the entire query.

We also add an `auto commit` field to the `EXPLAIN (VERBOSE)` output.
We can now test the planning part of auto commit without using traces
(the tests are updated accordingly).

Release note (sql change): `EXPLAIN (VERBOSE)` now indicates if
auto-commit will be used for mutations.
@RaduBerinde
Copy link
Member Author

bors r+

@craig
Copy link
Contributor

craig bot commented Nov 18, 2019

Build failed (retrying...)

@craig
Copy link
Contributor

craig bot commented Nov 18, 2019

Build failed

@RaduBerinde
Copy link
Member Author

bors r+

@craig
Copy link
Contributor

craig bot commented Nov 18, 2019

Build failed

@RaduBerinde
Copy link
Member Author

Sigh.. Filed #42559

bors r+

@craig
Copy link
Contributor

craig bot commented Nov 19, 2019

Build failed

@RaduBerinde
Copy link
Member Author

bors r+

@craig
Copy link
Contributor

craig bot commented Nov 19, 2019

Build failed

@RaduBerinde
Copy link
Member Author

bors r+

craig bot pushed a commit that referenced this pull request Nov 19, 2019
42500: opt: populate autocommit correctly under EXPLAIN r=RaduBerinde a=RaduBerinde

The autocommit decision was made on the entire query. This change
modifies the behavior for EXPLAIN, where we want to pretend that the
query under EXPLAIN is the entire query.

We also add an `auto commit` field to the `EXPLAIN (VERBOSE)` output.
We can now test the planning part of auto commit without using traces
(the tests are updated accordingly).

Release note: None

Co-authored-by: Radu Berinde <radu@cockroachlabs.com>
@craig
Copy link
Contributor

craig bot commented Nov 19, 2019

Build succeeded

@craig craig bot merged commit 378bbf0 into cockroachdb:master Nov 19, 2019
@RaduBerinde RaduBerinde deleted the explain-autocommit branch November 19, 2019 19:51
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.

None yet

3 participants