Box the SelectQuery in ProjectedSelect.

This commit is contained in:
Gregory Burd 2020-02-21 13:51:03 -05:00
parent 5979fa5844
commit 41f1ff2393

View file

@ -233,7 +233,7 @@ impl ToConstraint for ColumnConstraint {
pub enum ProjectedSelect { pub enum ProjectedSelect {
Constant(ConstantProjector), Constant(ConstantProjector),
Query { Query {
query: SelectQuery, query: Box<SelectQuery>,
projector: Box<dyn Projector>, projector: Box<dyn Projector>,
}, },
} }
@ -499,16 +499,16 @@ pub fn query_to_select(schema: &Schema, query: AlgebraicQuery) -> Result<Project
query.order, query.order,
query.limit, query.limit,
); );
re_project(inner, sql_projection) // outer Box::new(re_project(inner, sql_projection)) // outer
} }
None => cc_to_select_query( None => Box::new(cc_to_select_query(
sql_projection, sql_projection,
query.cc, query.cc,
distinct, distinct,
group_by_cols, group_by_cols,
query.order, query.order,
query.limit, query.limit,
), )),
}, },
projector: datalog_projector, projector: datalog_projector,
} }