-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
Add random data to sqlsmith.randTablesN() #75159
Comments
@mgartner looking at your test in |
@mgartner FYI |
@msbutler The TODO in FWIW, SQLSmith has been detecting many bugs that are only reproduced when the tables have data, so it seems like this may be unnecessary. Maybe it's time to delete that TODO? I'd support it. |
Sounds good! I'll delete the TODO. In the same spirit of |
PopulateRandTable populates the caller's table with random data. This helper function aims to make it easier for engineers to develop randomized tests that leverage randgen / sqlsmith. I considered adding random insert statements into sqlsmith's randtables setup, however the high probably of a faulty insert statement would cause the whole setup to fail. See cockroachdb#75159 Informs cockroachdb#72345 Release note: None
PopulateRandTable populates the caller's table with random data. This helper function aims to make it easier for engineers to develop randomized tests that leverage randgen / sqlsmith. I considered adding random insert statements into sqlsmith's randtables setup, however the high probably of a faulty insert statement would cause the whole setup to fail. See cockroachdb#75159 In the future, I'd like to develop a new helper function PopulateDatabaseWithRandData which calls PopulateTableWithRandData on each table in the order of the fk dependency graph. Informs cockroachdb#72345 Release note: None
PopulateRandTable populates the caller's table with random data. This helper function aims to make it easier for engineers to develop randomized tests that leverage randgen / sqlsmith. I considered adding random insert statements into sqlsmith's randtables setup, however the high probably of a faulty insert statement would cause the whole setup to fail. See cockroachdb#75159 In the future, I'd like to develop a new helper function PopulateDatabaseWithRandData which calls PopulateTableWithRandData on each table in the order of the fk dependency graph. Informs cockroachdb#72345 Release note: None
There's an outstanding to do in the function to add random data to the tables it creates.
The text was updated successfully, but these errors were encountered: