-
Notifications
You must be signed in to change notification settings - Fork 613
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: sql reducer #7504
Comments
Not a high priority, since sqlsmith work is wrapping up, and many bugs are already caught and fixed. But I think it could be interesting to implement one, and still moderately useful, as new features are added to RW and tested in sqlsmith. Creating an issue in case someone is interested in it. |
May refer to how QuickCheck shrinks 😄 |
Let's speculatively try to remove instead of just 1 step. We should speculatively remove things until removing something will no longer produce the panic. |
I found actually I have played with this idea very long time ago, but not sure whether it works. 🥵 Just post it here for reference: main...xxchan/shrink |
This issue has been open for 60 days with no activity. Could you please update the status? Feel free to continue discussion or close as not planned. |
Usecase
Generated queries can get rather nested and complex. This means they have to be shrunk in order to pinpoint the root cause of bugs.
Rough steps of manual sql reducing, starting with innermost subqueries:
ORDER BY
GROUP BY
WHERE
FROM
As you can see the steps are fairly mechanical, and can be automated.
We can either find an existing implementation, or implement a barebones version ourselves, if it's not too much effort.
Usage
Existing implementations
The text was updated successfully, but these errors were encountered: