-
Notifications
You must be signed in to change notification settings - Fork 382
Add DeleteGenerator for MariaDB #1275
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
base: main
Are you sure you want to change the base?
Add DeleteGenerator for MariaDB #1275
Conversation
Please run |
|
Thanks for the PR! Feel free to ping us for reviews (at least I don't get automatic notifications). Based on the CI/CD checks, the change causes some tests to fail. Could you please take a look? |
…n MariaDBDeleteGenerator
|
@mrigger Thanks for the feedback! I’ve addressed the Checkstyle and MariaDB issues, and the corresponding Some of the required checks (e.g., This seems to be an environment or version issue in the CI setup rather than something caused by the changes in the MariaDB generator. |
mrigger
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are right, it seems the current CI tests are not failing for MariaDB. I remember checking and seeing a DELETE statement fail for MariaDB, but perhaps that was for another PR or got resolved.
I noticed another minor issue. After fixing it, we can merge the PR. Thanks!
| case CREATE_INDEX: | ||
| nrPerformed = globalState.getRandomly().getInteger(0, 2); | ||
| break; | ||
| case DELETE: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps we could also generate them with a low probability? This logic will include 10 DELETE statements into every test case, rather than probabilistically generate some for some test cases, so tables are likely to be empty for many test cases.
Summary
This PR adds support for generating
DELETEstatements in MariaDB.Changes
MariaDBDeleteGeneratorfor creating randomDELETEqueries.DELETEaction intoMariaDBProvider.MariaDBProvider(import sqlancer.mariadb.gen.*).