Skip to content

Commit

Permalink
remove duplicates in agg
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinzwang committed Nov 21, 2024
1 parent 82260fc commit 369eab0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/daft-sql/src/planner.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use std::{
cell::{Ref, RefCell, RefMut},
collections::HashMap,
collections::{HashMap, HashSet},
rc::Rc,
sync::Arc,
};
Expand Down Expand Up @@ -424,6 +424,8 @@ impl<'a> SQLPlanner<'a> {
.map(|e| e.alias(e.semantic_id(schema).id)),
)
.chain(having.iter().map(|e| e.alias(e.semantic_id(schema).id)))
.collect::<HashSet<_>>()
.into_iter()
.collect();

let rel = self.relation_mut();
Expand Down

0 comments on commit 369eab0

Please sign in to comment.