tablet manager's ExecuteFetchAsDba does not allow multiple queries#18183
Merged
shlomi-noach merged 5 commits intovitessio:mainfrom Jul 22, 2025
Merged
tablet manager's ExecuteFetchAsDba does not allow multiple queries#18183shlomi-noach merged 5 commits intovitessio:mainfrom
ExecuteFetchAsDba does not allow multiple queries#18183shlomi-noach merged 5 commits intovitessio:mainfrom
Conversation
Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
Contributor
Review ChecklistHello reviewers! 👋 Please follow this checklist when reviewing this Pull Request. General
Tests
Documentation
New flags
If a workflow is added or modified:
Backward compatibility
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #18183 +/- ##
=======================================
Coverage 67.47% 67.48%
=======================================
Files 1607 1607
Lines 262872 262869 -3
=======================================
+ Hits 177381 177388 +7
+ Misses 85491 85481 -10 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
dbussink
reviewed
Apr 21, 2025
| if len(queries) > 1 && len(queries) != countCreate { | ||
| // See https://github.com/vitessio/vitess/issues/15505 | ||
| if len(queries) > 1 { | ||
| return vterrors.Errorf(vtrpc.Code_INVALID_ARGUMENT, "multi statement queries are not supported in ExecuteFetchAsDba unless all are CREATE TABLE or CREATE VIEW") |
Member
There was a problem hiding this comment.
We should also update the error message here now?
Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
Contributor
|
This PR is being marked as stale because it has been open for 30 days with no activity. To rectify, you may do any of the following:
If no action is taken within 7 days, this PR will be closed. |
Contributor
|
This PR was closed because it has been stale for 7 days with no activity. |
Contributor
Author
|
Seeking reviews. |
harshit-gangal
approved these changes
Jul 16, 2025
dbussink
approved these changes
Jul 21, 2025
Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
morgo
added a commit
to morgo/vitess
that referenced
this pull request
Jul 29, 2025
…rds-new2 * origin/master: Set up better dependency checks (vitessio#18508) bugfix: Plan group by only on top of derived tables correctly (vitessio#18505) Fix regression in v22 around new flag setup (vitessio#18507) Bump form-data from 4.0.1 to 4.0.4 in /web/vtadmin (vitessio#18473) Bump @babel/runtime from 7.26.0 to 7.27.6 in /web/vtadmin (vitessio#18467) Bump vite from 4.5.9 to 4.5.14 in /web/vtadmin (vitessio#18485) Fix for simple projection showing no fields (vitessio#18489) log.Info -> log.Infof in tabletserver for reloading ACLs (vitessio#18461) Fix scalar aggregation with literals in empty result sets (vitessio#18477) Avoid terminating atomic copy workflows on error if they are out of copy phase (vitessio#18475) Update runners to use cncf oracle vms (vitessio#18425) fix: handle aliases in UNIONs better (vitessio#18484) VReplication: Fix bug while reading _vt.vreplication record (vitessio#18478) Planner: Add comprehensive debug logging for query planner NoRewrite cases (vitessio#18476) Update email in Maintainers file (vitessio#18472) tablet manager's `ExecuteFetchAsDba` does not allow multiple queries (vitessio#18183) Signed-off-by: Morgan Tocker <tocker@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This is the last part of #15505 which spans multiple versions. In this final part
ExecuteFetchAsDbareject any multi-query request. There is no code in v22 or above that will issueExecuteFetchAsDbawith multiple queries, seeing that the last such scenario was cleaned up in #17078.No test changes required.
Related Issue(s)
ExecuteMultiFetchAsDbagRPC method #15505Checklist
Deployment Notes