Struct datafusion::logical_plan::plan::Aggregate
source · [−]pub struct Aggregate {
pub input: Arc<LogicalPlan>,
pub group_expr: Vec<Expr, Global>,
pub aggr_expr: Vec<Expr, Global>,
pub schema: Arc<DFSchema>,
}
Expand description
Aggregates its input based on a set of grouping and aggregate expressions (e.g. SUM).
Fields
input: Arc<LogicalPlan>
The incoming logical plan
group_expr: Vec<Expr, Global>
Grouping expressions
aggr_expr: Vec<Expr, Global>
Aggregate expressions
schema: Arc<DFSchema>
The schema description of the aggregate output
Implementations
sourceimpl Aggregate
impl Aggregate
pub fn try_new(
input: Arc<LogicalPlan>,
group_expr: Vec<Expr, Global>,
aggr_expr: Vec<Expr, Global>,
schema: Arc<DFSchema>
) -> Result<Aggregate, DataFusionError>
pub fn try_from_plan(plan: &LogicalPlan) -> Result<&Aggregate, DataFusionError>
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Aggregate
impl Send for Aggregate
impl Sync for Aggregate
impl Unpin for Aggregate
impl !UnwindSafe for Aggregate
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more