-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 13 of 13 files at r1.
Reviewable status: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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status:
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status:
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.
bors r+ |
Build failed |
Hit #42280 bors r+ |
Build failed |
ui-test flake bors r+ |
bors r+ |
bors r- |
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.
26b52a4
to
378bbf0
Compare
bors r+ |
Build failed (retrying...) |
Build failed |
bors r+ |
Build failed |
Sigh.. Filed #42559 bors r+ |
Build failed |
bors r+ |
Build failed |
bors r+ |
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>
Build succeeded |
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 theEXPLAIN (VERBOSE)
output.We can now test the planning part of auto commit without using traces
(the tests are updated accordingly).
Release note: None