Skip to content

Commit

Permalink
Fix very broken clear_exprs_in_group
Browse files Browse the repository at this point in the history
  • Loading branch information
jurplel committed Feb 11, 2024
1 parent bc89801 commit f2dfb17
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions optd-core/src/cascades/memo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -222,10 +222,8 @@ impl<T: RelNodeTyp> Memo<T> {
props
}

pub fn clear_exprs_in_group(&self, group_id: ReducedGroupId) {
let group = self.groups.get(&group_id).expect("group not found");
let mut exprs = group.group_exprs.iter().copied().collect_vec();
exprs.clear();
fn clear_exprs_in_group(&mut self, group_id: ReducedGroupId) {
self.groups.remove(&group_id);
}

fn add_expr_to_group(
Expand Down

0 comments on commit f2dfb17

Please sign in to comment.