-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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: Exclude statements that spawn jobs from showing up in query tables. #17786
sql: Exclude statements that spawn jobs from showing up in query tables. #17786
Conversation
The intention is laudable but the approach is limited. Please instead use the same approach as Reviewed 2 of 2 files at r1. Comments from Reviewable |
5c211a4
to
99d6020
Compare
Done. Implemented a new pseudo-interface. PTAL! Review status: 0 of 3 files reviewed at latest revision, all discussions resolved, some commit checks pending. Comments from Reviewable |
290e166
to
7a776ad
Compare
Nice improvement! Reviewed 3 of 3 files at r2. pkg/sql/executor.go, line 1097 at r2 (raw file):
A few long lines here. Try to keep under 100 chars, per our style guide. pkg/sql/session.go, line 661 at r2 (raw file):
Give this a bit more detail (eg. mention pkg/sql/session.go, line 662 at r2 (raw file):
I would just defer the Comments from Reviewable |
7a776ad
to
a98c469
Compare
Review status: 1 of 3 files reviewed at latest revision, 3 unresolved discussions. pkg/sql/executor.go, line 1097 at r2 (raw file): Previously, nvanbenschoten (Nathan VanBenschoten) wrote…
Done. pkg/sql/session.go, line 661 at r2 (raw file): Previously, nvanbenschoten (Nathan VanBenschoten) wrote…
Done. pkg/sql/session.go, line 662 at r2 (raw file): Previously, nvanbenschoten (Nathan VanBenschoten) wrote…
Done. Comments from Reviewable |
a98c469
to
666102a
Compare
Review status: 1 of 3 files reviewed at latest revision, all discussions resolved. Comments from Reviewable |
Add a type switch for the AST, and manually exclude BACKUP/RESTORE/ALTER TABLEss from being added to
session.mu.ActiveQueries
, making them uncancellable and "invisible" toSHOW QUERIES
.Fixes #17730 .