Skip to content

Conversation

@postamar
Copy link

Informs #88294.

Release note: None

@cockroach-teamcity
Copy link
Member

This change is Reviewable

Marius Posta added 5 commits January 19, 2023 06:52
Previously, it was impossible to execute EXPLAIN (DDL) COMMENT ON...
This commit fixes this.

Release note (bug fix): EXPLAIN (DDL) COMMENT ON is now possible.
This commit fixes a bug with this function which only becomes apparent
when not using bazel. This only impacts testing with GoLand.

Release note: None
In some cases, we define a set of almost-identical rules with the same
name, purposefully. The name is what is used by the data-driven test
output to sort the rule definitions, because these otherwise appear in
the order that the init() functions were called, which is undefined.

Sorting by name reduced the instability of the data-driven test when
adding or removing init() blocks containing rule definitions, but did
not altogether remove it.

This commit should help further remove it by using a stable sort. In
this way, the test output should be stable assuming that rule names are
not re-used across init() blocks.

Release note: None
This operation is no longer required.

Release note: None
This commit fixes a bug where comments weren't handled correctly by the
test state. This wasn't noticeable because the code wasn't actually
exercised anywhere. This commit also fixes this.

Release note: None
@postamar postamar force-pushed the declarative-schema-changer-small-fixes branch from 8979538 to fc10b6d Compare January 19, 2023 12:08
@postamar postamar marked this pull request as ready for review January 19, 2023 14:14
@postamar postamar requested review from a team January 19, 2023 14:14
@postamar postamar requested a review from a team as a code owner January 19, 2023 14:14
@postamar postamar requested review from rytaft and removed request for a team and rytaft January 19, 2023 14:14
@postamar
Copy link
Author

Thanks for the review!
bors r+

@craig
Copy link
Contributor

craig bot commented Jan 19, 2023

Build succeeded:

@craig craig bot merged commit f27fa9d into cockroachdb:master Jan 19, 2023
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