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

sql/builtins: remove dependency to sql/randgen #83718

Merged

Conversation

Xiang-Gu
Copy link
Contributor

@Xiang-Gu Xiang-Gu commented Jul 1, 2022

Previously, a test in the builtins package depended on randgen.
This was inadequate because it will introduce a dependency cycle later
when we introduce the dependency from tabledesc to builtins, as
required to implement some sequence reference releated issues (see
pr #82172 for details).

Release note: None

@cockroach-teamcity
Copy link
Member

This change is Reviewable

@Xiang-Gu Xiang-Gu force-pushed the break_dep_drom_builtins_to_randgen branch from cbd434e to 542bc3a Compare July 1, 2022 19:16
Copy link
Contributor

@ajwerner ajwerner 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 3 of 3 files at r1, all commit messages.
Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @Xiang-Gu)

@Xiang-Gu Xiang-Gu marked this pull request as ready for review July 1, 2022 21:29
@Xiang-Gu Xiang-Gu requested a review from a team July 1, 2022 21:29
@Xiang-Gu
Copy link
Contributor Author

Xiang-Gu commented Jul 1, 2022

bors r+

@Xiang-Gu
Copy link
Contributor Author

Xiang-Gu commented Jul 1, 2022

bors r-

I realized that the added disallow_import does not have the effect as we'd like; removing it.

@craig
Copy link
Contributor

craig bot commented Jul 1, 2022

Canceled.

Previously, a test in the `builtins` package depended on `randgen`.
This was inadequate because it will introduce a dependency cycle later
when we introduce the dependency from `tabledesc` to `builtins`, as
required to implement some sequence reference releated issues (see
pr cockroachdb#82172 for details).

Release note: None
@Xiang-Gu Xiang-Gu force-pushed the break_dep_drom_builtins_to_randgen branch from 542bc3a to 6d5fc13 Compare July 1, 2022 21:37
@Xiang-Gu
Copy link
Contributor Author

Xiang-Gu commented Jul 1, 2022

bors r+

@craig
Copy link
Contributor

craig bot commented Jul 2, 2022

Build succeeded:

@craig craig bot merged commit 4e81340 into cockroachdb:master Jul 2, 2022
@Xiang-Gu Xiang-Gu deleted the break_dep_drom_builtins_to_randgen branch July 11, 2022 18:46
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