Box the SelectQuery in ProjectedSelect.
This commit is contained in:
parent
5979fa5844
commit
41f1ff2393
1 changed files with 4 additions and 4 deletions
|
@ -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,
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue