-
Notifications
You must be signed in to change notification settings - Fork 5
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
Enable verification - add ORDER BY * #17
Conversation
… to flag the state
…TILE function check to the GenerateFuntion() to be able to use not volatile functions if verification is enabled
…RY and AGGREGATE_FUNCTION_ENTRY generation flow - if it's VOLATILE, we just should pick non-volatile function (but I didn't see there any volatile func for now; Also the GenerateOrderBy() for now uses GenerateStar(), but in the test output I still see not only the ORDER BY * (ex. BY COLUMN 🤔). What's more, with the seed = 1 and enable_verification=true it crashes during the Query 21 on the 13th attempt of setop->left = GenerateQueryNode();
fix indentation
… places generating like Order by something (*) and fix it Add Generate Order by *, when verification is enabled. TODO: Find the places generating like Order by something (*) and fix it
…_enabled is false by default when StatementGenerator object created from (*this), its verification_enabled is false by default fix GenerateStarexpression to return only star expression, when verification_enabled=true fix GenerateStarexpression to return only star expression, when verification_enabled=true fix GenerateStarexpression to return only star expression, when verification_enabled=true clean up fix GenerateStarexpression to return only star expression, when verification_enabled=true
…ication_enabled=true fix GenerateStarexpression to return only star expression, when verification_enabled=true fix GenerateStarexpression to return only star expression, when verification_enabled=true fix GenerateStarexpression to return only star expression, when verification_enabled=true
ba0ba08
to
5eb7801
Compare
@Tmonster could you please take a look at this PR? |
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.
thanks! just a couple of comments
src/statement_generator.cpp
Outdated
@@ -532,6 +534,7 @@ unique_ptr<TableRef> StatementGenerator::GenerateSubqueryRef() { | |||
unique_ptr<SelectStatement> subquery; | |||
{ | |||
StatementGenerator child_generator(*this); |
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 can assign verification_enabled
here in the constructor
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.
I created one more constructor to assign verification_enabled
using it (and to avoid searching and adding the second parameter everywhere in the code).
remove commented out code
67714f4
to
5ef9905
Compare
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.
Looks much better, just a few comments
Thanks! |
This PR makes StatementGenerator generate
ORDER BY *
.It is the first step to fuzz with
enable_verification
.Connected issue