Skip to content

release-25.3: sql: fix check external connection evaluation #149358

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

Open
wants to merge 1 commit into
base: release-25.3
Choose a base branch
from

Conversation

blathers-crl[bot]
Copy link

@blathers-crl blathers-crl bot commented Jul 1, 2025

Backport 1/1 commits from #149260 on behalf of @jeffswenson.


Previously, CHECK EXTERNAL CONNECTION '' WITH CONCURRENCY = (SELECT 1) would panic because its not able to evaluate an expression containing a sub query.

Now, passing a sub query will fail with a user error.

CHECK EXTERNAL CONNECTION NULLIF WITH CONCURRENTLY = EXISTS ( ( TABLE error ) );
ERROR: subqueries are not allowed in check_external_connection
SQLSTATE: 0A000

Release note: none
Informs: #147876
Informs: #147877


Release justification: a low risk fix for a recently introduced feature.

Previously, `CHECK EXTERNAL CONNECTION '' WITH CONCURRENCY = (SELECT 1)`
would panic because its not able to evaluate an expression containing a
sub query.

Now, passing a sub query will fail with a user error.

```
CHECK EXTERNAL CONNECTION NULLIF WITH CONCURRENTLY = EXISTS ( ( TABLE error ) );
ERROR: subqueries are not allowed in check_external_connection
SQLSTATE: 0A000
```

Release note: none
Informs: #147876
Informs: #147877
@blathers-crl blathers-crl bot force-pushed the blathers/backport-release-25.3-149260 branch from 29af9f6 to 372d855 Compare July 1, 2025 17:44
@blathers-crl blathers-crl bot added blathers-backport This is a backport that Blathers created automatically. O-robot Originated from a bot. labels Jul 1, 2025
@blathers-crl blathers-crl bot requested a review from kev-cao July 1, 2025 17:44
Copy link
Author

blathers-crl bot commented Jul 1, 2025

Thanks for opening a backport.

Before merging, please confirm that the change does not break backwards compatibility and otherwise complies with the backport policy. Include a brief release justification in the PR description explaining why the backport is appropriate. All backports must be reviewed by the TL for the owning area. While the stricter LTS policy does not yet apply, please exercise judgment and consider gating non-critical changes behind a disabled-by-default feature flag when appropriate.

@blathers-crl blathers-crl bot added the backport Label PR's that are backports to older release branches label Jul 1, 2025
@jeffswenson jeffswenson requested a review from msbutler July 2, 2025 12:12
@cockroach-teamcity
Copy link
Member

This change is Reviewable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport Label PR's that are backports to older release branches blathers-backport This is a backport that Blathers created automatically. O-robot Originated from a bot.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants