-
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/tests: TestRandomSyntaxFuncCommon failed [nil pointer in optbuilder] #109069
Comments
Reproduces on a fresh cluster using:
|
@rafiss need a volunteer for this one? |
I'll move this over to SQL Queries, since it relates to the optimizer code. |
Slightly simpler repro:
I spent some time looking at this last week. So far what I know is that when we build the scope, in Some options I would consider:
|
(1) seems like the best option for now. No point in adding this special syntax without a known use case for it. |
109861: sql: disable order by index in aggregate decoration clauses r=rharding6373 a=rharding6373 Before this change, queries like `SELECT percentile_disc ( 0.50 ) WITHIN GROUP ( ORDER BY PRIMARY KEY tbl ) FROM tbl;` would fail with an internal error. This is due to optbuilder expecting an order expression, which order by index does not provide, in the aggregate case in order to resolve the function. Since this functionality has never worked and appears to be a rare or never used feature, this PR disables queries with order by index in this position at the parsing stage. Issue #109847 has been opened to track usage. Epic: None Fixes: #109069 Informs: #109847 Release note: None. 110016: github: split up spanconfig(ccl) owners r=arulajmani,rafiss a=kvoli Prior to this commit, `kv-prs` was the owner of `pkg/spanconfig` and `pkg/ccl/spanconfigccl`. Package ownership is updated to reflect the ownership split between `kv-prs` and `sql-foundations`. See CODEOWNERS for the split. Epic: none Release note: None 110029: roachtest: fix calls to schemachange workload in acceptance/version-upgrade r=fqazi a=renatolabs The `schemachange` workload would always be called in that test; however, we are currently only staging the `workload` binary build on the SHA being tested; this is insufficient now that we test multiple upgrades in `mixedversion` tests. We fix the immediate issue by not invoking the workload when we are not performing an upgrade or downgrade involving the current cockroach binary. In the future, it would be nice to stage multiple workload binaries and use the appropriate one in the mixed-version hook. Epic: none Release note: None Co-authored-by: rharding6373 <[email protected]> Co-authored-by: Austen McClernon <[email protected]> Co-authored-by: Renato Costa <[email protected]>
Before this change, queries like `SELECT percentile_disc ( 0.50 ) WITHIN GROUP ( ORDER BY PRIMARY KEY tbl ) FROM tbl;` would fail with an internal error. This is due to optbuilder expecting an order expression, which order by index does not provide, in the aggregate case in order to resolve the function. Since this functionality has never worked and appears to be a rare or never used feature, this PR disables queries with order by index in this position at the parsing stage. Issue #109847 has been opened to track usage. Epic: None Fixes: #109069 Informs: #109847 Release note: None.
sql/tests.TestRandomSyntaxFuncCommon failed with artifacts on master @ 9fcc5c8ce60d2f25e06e41bd97e20445233f9fa5:
Random syntax error:
Query:
Help
See also: How To Investigate a Go Test Failure (internal)
This test on roachdash | Improve this report!
Jira issue: CRDB-30764
The text was updated successfully, but these errors were encountered: