-
Notifications
You must be signed in to change notification settings - Fork 61
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
Cleanup and asserts #130
Cleanup and asserts #130
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #130 +/- ##
==========================================
+ Coverage 83.57% 84.27% +0.69%
==========================================
Files 16 17 +1
Lines 1163 1170 +7
Branches 258 249 -9
==========================================
+ Hits 972 986 +14
+ Misses 81 79 -2
+ Partials 110 105 -5
|
Benchmarks
|
By this change, should we use |
c91f646
to
887e1c5
Compare
No, some errors are expected and we can actually trigger them in tests.
|
TODO: Add an invariant check to |
c0fa46b
to
725c1b3
Compare
src/hooks/plan_tree_walker.c
Outdated
@@ -55,7 +57,7 @@ bool plan_tree_walker(Plan *plan, bool (*walker_func)(Node *plan, void *context) | |||
// Join nodes | |||
case T_Join: | |||
Join *join = (Join *)plan; | |||
if(base_plan_walker(&(join->plan), walker_func, context)) return true; | |||
if(base_plan_walker((Plan *)&(join->plan), walker_func, context)) return true; |
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 don't think this or the one below should be necessary, join->plan is always a plan.
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. removed it.
e8c0651
to
6bbc630
Compare
Per the standard: https://port70.net/~nsz/c/c11/n1570.html#6.8.1 Labels must be followed by a statement. Switch 'case's are just labels. So, we cannot have a variable declaration right after a 'case'. We *can* have a code block however, which is what this PR does. It seems the newer compilers handle the case when a declaration comes after a switch 'case'. But my compiler (gcc 10.2) complained about it
fac194c
to
5f01084
Compare
No description provided.