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

randgen: generate random expression indexes #68812

Merged
merged 2 commits into from
Aug 16, 2021

Conversation

mgartner
Copy link
Collaborator

randgen: refactor random expression generation

This commit refactors the code that generates random computed columns so
that the logic for generating random expressions can be used in a future
commit to generate random expression indexes.

Release note: None

randgen: generate random expression indexes

The randgen package now generates schemas with random expression
indexes. This allows for random testing of expression indexes in
sqlsmith and ternary logic partitioning (TLP).

Fixes #68174

Release note: None

@mgartner mgartner requested review from michae2 and a team August 12, 2021 18:26
@mgartner mgartner requested a review from a team as a code owner August 12, 2021 18:26
@mgartner mgartner requested review from dt and removed request for a team August 12, 2021 18:26
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@mgartner
Copy link
Collaborator Author

mgartner commented Aug 12, 2021

The first commit is from #68807. Rebased.

This commit refactors the code that generates random computed columns so
that the logic for generating random expressions can be used in a future
commit to generate random expression indexes.

Release note: None
The `randgen` package now generates schemas with random expression
indexes. This allows for random testing of expression indexes in
`sqlsmith` and ternary logic partitioning (TLP).

Fixes cockroachdb#68174

Release note: None
@mgartner mgartner requested review from rytaft and removed request for dt August 16, 2021 17:10
Copy link
Collaborator

@michae2 michae2 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 16 of 16 files at r2, 2 of 2 files at r3, all commit messages.
Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @rytaft)

@mgartner
Copy link
Collaborator Author

TFTR!

bors r+

@craig
Copy link
Contributor

craig bot commented Aug 16, 2021

Build succeeded:

@craig craig bot merged commit 852934c into cockroachdb:master Aug 16, 2021
@mgartner mgartner deleted the randgen-expr-idx branch August 16, 2021 21:09
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.

sql: add expression indexes to randgen
3 participants