diff --git a/src/daft-sql/src/planner.rs b/src/daft-sql/src/planner.rs index e66c688af6..dd9a38f7af 100644 --- a/src/daft-sql/src/planner.rs +++ b/src/daft-sql/src/planner.rs @@ -1,6 +1,6 @@ use std::{ cell::{Ref, RefCell, RefMut}, - collections::HashMap, + collections::{HashMap, HashSet}, rc::Rc, sync::Arc, }; @@ -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::>() + .into_iter() .collect(); let rel = self.relation_mut();