Skip to content
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

release-23.1: sql: fix formatting of import, backup and create tenant #107723

Conversation

chengxiong-ruan
Copy link
Contributor

@chengxiong-ruan chengxiong-ruan commented Jul 27, 2023

Informs: #99183

Similar to #107185, this commit wraps option formatting of import, backup and restore statement with (). Also wrap replcation expression with () in create tenant from replication statements.

Release note: None
Release justification: fix syntax formatting for more stable random syntax generation test.

@cockroach-teamcity
Copy link
Member

This change is Reviewable

@chengxiong-ruan chengxiong-ruan force-pushed the 07272023-fix-rand-syntax-gen branch 2 times, most recently from e2d33db to d536635 Compare July 27, 2023 22:12
@chengxiong-ruan chengxiong-ruan changed the title replease-23.1 sql: fix formatting of import, backup and create tenant release-23.1 sql: fix formatting of import, backup and create tenant Jul 27, 2023
@chengxiong-ruan chengxiong-ruan changed the title release-23.1 sql: fix formatting of import, backup and create tenant release-23.1: sql: fix formatting of import, backup and create tenant Jul 27, 2023
@chengxiong-ruan chengxiong-ruan marked this pull request as ready for review July 27, 2023 22:14
@chengxiong-ruan chengxiong-ruan requested a review from a team July 27, 2023 22:14
@chengxiong-ruan chengxiong-ruan requested review from a team as code owners July 27, 2023 22:14
@chengxiong-ruan chengxiong-ruan requested review from nkodali, rhu713, rytaft and a team and removed request for a team, nkodali, rhu713 and rytaft July 27, 2023 22:14
Informs: cockroachdb#99183

Similar to cockroachdb#107185, this commit wraps option formatting of
import, backup and restore statement with `()`. Also wrap
replcation expression with `()` in `create tenant from replication`
statements.

Release note: None
@rafiss rafiss requested review from a team and removed request for a team July 28, 2023 01:01
Copy link
Contributor

@knz knz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm:

Reviewed 8 of 21 files at r1.
Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained

@chengxiong-ruan
Copy link
Contributor Author

TFTR!

@chengxiong-ruan chengxiong-ruan merged commit 07db370 into cockroachdb:release-23.1 Jul 28, 2023
2 checks passed
chengxiong-ruan added a commit to chengxiong-ruan/cockroach that referenced this pull request Jul 31, 2023
Informs: cockroachdb#99185

This commit cherry-picked changes from cockroachdb#107723 and add fixes
for formatting `EXPORT` options.

Release note: None
craig bot pushed a commit that referenced this pull request Aug 2, 2023
107279: sql: remove isInternalPlanner boolean r=yuzefovich a=yuzefovich

This boolean is very confusing and can mislead people, so let's remove it.

It was introduced in bf9ffe9 with one specific use case in mind: lease management for user defined types when the execution flow occurs in the context of a user transaction. In that scenario, the execution engine uses the planner's `descs.Collection` when running the local plan. However, I don't see the reason why we cannot do the same thing for queries outside of the user transaction (where we have the "internal planner" object), so this commit removes that extra conditional. That said, I don't quite understand how these things work, but we can always go back to not using the planner's collection for "internal planners" (we'd name the boolean differently though) if we see any fallout.

Epic: None
Release note: None

107834: roachtest: require stability in rebalance by load roachtests r=andrewbaptist a=kvoli

The `rebalance/by-load` roachtests collect timeseries data from the
cluster. If these tests started quickly enough, no datapoints could
exist which would cause a out of bounds array exception.

Handle the no datapoints case, and log a message without failing the
test.

Informs: #107247

----

The `rebalance/by-load` roachtests would immediately pass once the
balance target was hit. However, it was possible that the cluster was
only transiently balanced.

Bump the timeout of all tests to be uniformly 10 minutes, from a
previous 5 minutes, require that the load remains balanced for at
least 1 minute to pass.

Informs: #107247

Release note: None

107892: sql: fix formatting of import, backup and create tenant r=chengxiong-ruan a=chengxiong-ruan

Informs: #99185

This commit cherry-picked changes from #107723 and add fixes for formatting `EXPORT` and `CHANGEFEED` options.

Release note: None

107955: roachtest: increase the concurrency for gracefuldraining r=kvoli a=andrewbaptist

This set of commits changes gracefuldraining to use the `measureQPS` method instead of looking at the stats from the stats database and additionally increases the concurrency so it no longer fails.

Co-authored-by: Yahor Yuzefovich <[email protected]>
Co-authored-by: Austen McClernon <[email protected]>
Co-authored-by: Chengxiong Ruan <[email protected]>
Co-authored-by: Andrew Baptist <[email protected]>
mgartner pushed a commit to mgartner/cockroach that referenced this pull request Aug 28, 2023
Informs: cockroachdb#99185

This commit cherry-picked changes from cockroachdb#107723 and add fixes
for formatting `EXPORT` options.

Release note: None
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants