-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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/tests: TestRandomSyntaxGeneration failed [ALTER TENANT (SELECT 'foo') START REPLICATION ...
immediately crashes the database process]
#135784
Comments
We are hitting this assert: cockroach/pkg/sql/sem/tree/expr.go Lines 146 to 152 in a6bcc1a
I can't seem to locate the SQL statement that was being parsed, which would be helpful for debugging. |
cc @cockroachdb/disaster-recovery |
ALTER TENANT (SELECT 'foo') START REPLICATION ...
immediately crashes the database process]
Repro on a fresh cluster with no other setup:
|
@rafiss thanks for digging up a precise repro! I'm noticing something strange with how we parse invalid statements. In this experimental branch, I play with the test
the client receives the expected However, if the user passes a bogus pgurl (
Has this |
Oh wait, actually, if foo is set via placeholder, we do see the correct subquery check
returns while this panics:
So, now i'm wondering why place holder evaluation triggers the right subquery check. |
So we catch the subquery error for placeholders in |
sql/tests.TestRandomSyntaxGeneration failed with artifacts on release-24.2.5-rc @ beddec16a5a438d66bd3f5f4202085cf21c0973c:
Help
See also: How To Investigate a Go Test Failure (internal)
Same failure on other branches
This test on roachdash | Improve this report!
Jira issue: CRDB-44704
The text was updated successfully, but these errors were encountered: