- 
                Notifications
    You must be signed in to change notification settings 
- Fork 10
Feature/refactor planning #726
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
Conversation
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 have some minor comments, but looks good overall
| /// For each variant of the variable order computation | ||
| /// contains one [HashSet] mapping each predicate to its available [ColumnOrder]s. | ||
| pub(crate) all_column_orders: Vec<HashMap<Tag, HashSet<ColumnOrder>>>, | ||
| pub(crate) _all_column_orders: Vec<HashMap<Tag, HashSet<ColumnOrder>>>, | 
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.
Instead of renaming this, why not add #[allow(unused)]? Now this won't sort next to all_variable_orders in, e.g., autocomplete.
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.
Also, is this actually even unused?
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.
It is now. Before it was used to compute a variable order for additional rules using the existing column orders as input. Now everything is handled with the initial variable order.
| ImportInstruction::new(predicate, handler) | ||
| } | ||
|  | ||
| #[ignore] | 
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.
Why are we ignoring this test?
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 wanted to ask @monsterkrampe if he could take a look at it later, as I don't understand how my changes would affect the outcome of the variable order computation (and if this would even be a problem)
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.
Ok, should be fixed now
| (rules, variables, predicates) | ||
| } | ||
|  | ||
| #[ignore] | 
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.
Same question, why is this ignored?
| UnionRange::NewExclusive => (step_last_application + 1)..step_current, | ||
| UnionRange::OldInclusive => 0..(step_last_application + 1), | 
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.
Please use ..= instead of adding 1 and using exclusive ranges
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.
Apparently Range and RangeInclusive are different types
94fc828    to
    d19caac      
    Compare
  
    
This PR replaces
ChaseRuleandRuleAnalysiswithNormalizedRules. It also reworks the planning code.