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

sqlsmith: add schema-related operations #56395

Merged
merged 1 commit into from
Nov 30, 2020

Conversation

jordanlewis
Copy link
Member

@jordanlewis jordanlewis commented Nov 6, 2020

User-defined schemas are now supported in sqlsmith. UDSs will be
randomly generated, and new tables will be randomly included in the
available UDSs. Queries will select from any table, including those
inside of UDSs as well.

Closes #54961.

Release note: None

User-defined schemas are now supported in sqlsmith. UDSs will be
randomly generated, and new tables will be randomly included in the
available UDSs. Queries will select from any table, including those
inside of UDSs as well.

Release note: None
@jordanlewis jordanlewis requested a review from a team November 6, 2020 23:37
@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Collaborator

@rafiss rafiss left a comment

Choose a reason for hiding this comment

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

lgtm!

@@ -359,25 +392,10 @@ func (s *Smither) extractIndexes(
Direction: dir,
})
}
row := s.db.QueryRow(fmt.Sprintf(`
Copy link
Collaborator

Choose a reason for hiding this comment

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

we don't we need this 19.2 fallback logic any more?

Copy link
Member Author

Choose a reason for hiding this comment

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

I don't think so - each roachtest is run on its branch now, I thought.

Copy link
Collaborator

Choose a reason for hiding this comment

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

ah yes, that was just changed in the beginning of november. so this lgtm

@jordanlewis
Copy link
Member Author

bors r+

@craig
Copy link
Contributor

craig bot commented Nov 30, 2020

Build succeeded:

@craig craig bot merged commit 13ce0e8 into cockroachdb:master Nov 30, 2020
@jordanlewis jordanlewis deleted the sqlsmith-schemas branch December 1, 2020 19:21
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.

sqlsmith: handle user-defined schemas
3 participants