Enum polars::prelude::LogicalPlan[][src]

pub enum LogicalPlan {
Show 16 variants Selection { input: Box<LogicalPlan, Global>, predicate: Expr, }, Cache { input: Box<LogicalPlan, Global>, }, CsvScan { path: PathBuf, schema: Arc<Schema>, options: CsvParserOptions, predicate: Option<Expr>, aggregate: Vec<Expr, Global>, }, ParquetScan { path: PathBuf, schema: Arc<Schema>, with_columns: Option<Vec<String, Global>>, predicate: Option<Expr>, aggregate: Vec<Expr, Global>, stop_after_n_rows: Option<usize>, cache: bool, }, DataFrameScan { df: Arc<DataFrame>, schema: Arc<Schema>, projection: Option<Vec<Expr, Global>>, selection: Option<Expr>, }, LocalProjection { expr: Vec<Expr, Global>, input: Box<LogicalPlan, Global>, schema: Arc<Schema>, }, Projection { expr: Vec<Expr, Global>, input: Box<LogicalPlan, Global>, schema: Arc<Schema>, }, Aggregate { input: Box<LogicalPlan, Global>, keys: Arc<Vec<Expr, Global>>, aggs: Vec<Expr, Global>, schema: Arc<Schema>, apply: Option<Arc<dyn DataFrameUdf + 'static>>, maintain_order: bool, }, Join { input_left: Box<LogicalPlan, Global>, input_right: Box<LogicalPlan, Global>, schema: Arc<Schema>, left_on: Vec<Expr, Global>, right_on: Vec<Expr, Global>, options: JoinOptions, }, HStack { input: Box<LogicalPlan, Global>, exprs: Vec<Expr, Global>, schema: Arc<Schema>, }, Distinct { input: Box<LogicalPlan, Global>, maintain_order: bool, subset: Arc<Option<Vec<String, Global>>>, }, Sort { input: Box<LogicalPlan, Global>, by_column: Vec<Expr, Global>, reverse: Vec<bool, Global>, }, Explode { input: Box<LogicalPlan, Global>, columns: Vec<String, Global>, }, Slice { input: Box<LogicalPlan, Global>, offset: i64, len: usize, }, Melt { input: Box<LogicalPlan, Global>, id_vars: Arc<Vec<String, Global>>, value_vars: Arc<Vec<String, Global>>, schema: Arc<Schema>, }, Udf { input: Box<LogicalPlan, Global>, function: Arc<dyn DataFrameUdf + 'static>, predicate_pd: bool, projection_pd: bool, schema: Option<Arc<Schema>>, },
}

Variants

Selection

Filter on a boolean mask

Fields of Selection

input: Box<LogicalPlan, Global>predicate: Expr
Cache

Cache the input at this point in the LP

Fields of Cache

input: Box<LogicalPlan, Global>
CsvScan

Scan a CSV file

Fields of CsvScan

path: PathBufschema: Arc<Schema>options: CsvParserOptionspredicate: Option<Expr>

Filters at the scan level

aggregate: Vec<Expr, Global>

Aggregations at the scan level

ParquetScan

Scan a Parquet file

Fields of ParquetScan

path: PathBufschema: Arc<Schema>with_columns: Option<Vec<String, Global>>predicate: Option<Expr>aggregate: Vec<Expr, Global>stop_after_n_rows: Option<usize>cache: bool
DataFrameScan

In memory DataFrame

Fields of DataFrameScan

df: Arc<DataFrame>schema: Arc<Schema>projection: Option<Vec<Expr, Global>>selection: Option<Expr>
LocalProjection

Fields of LocalProjection

expr: Vec<Expr, Global>input: Box<LogicalPlan, Global>schema: Arc<Schema>
Projection

Column selection

Fields of Projection

expr: Vec<Expr, Global>input: Box<LogicalPlan, Global>schema: Arc<Schema>
Aggregate

Groupby aggregation

Fields of Aggregate

input: Box<LogicalPlan, Global>keys: Arc<Vec<Expr, Global>>aggs: Vec<Expr, Global>schema: Arc<Schema>apply: Option<Arc<dyn DataFrameUdf + 'static>>maintain_order: bool
Join

Join operation

Fields of Join

input_left: Box<LogicalPlan, Global>input_right: Box<LogicalPlan, Global>schema: Arc<Schema>left_on: Vec<Expr, Global>right_on: Vec<Expr, Global>options: JoinOptions
HStack

Adding columns to the table without a Join

Fields of HStack

input: Box<LogicalPlan, Global>exprs: Vec<Expr, Global>schema: Arc<Schema>
Distinct

Remove duplicates from the table

Fields of Distinct

input: Box<LogicalPlan, Global>maintain_order: boolsubset: Arc<Option<Vec<String, Global>>>
Sort

Sort the table

Fields of Sort

input: Box<LogicalPlan, Global>by_column: Vec<Expr, Global>reverse: Vec<bool, Global>
Explode

An explode operation

Fields of Explode

input: Box<LogicalPlan, Global>columns: Vec<String, Global>
Slice

Slice the table

Fields of Slice

input: Box<LogicalPlan, Global>offset: i64len: usize
Melt

A Melt operation

Fields of Melt

input: Box<LogicalPlan, Global>id_vars: Arc<Vec<String, Global>>value_vars: Arc<Vec<String, Global>>schema: Arc<Schema>
Udf

A User Defined Function

Fields of Udf

input: Box<LogicalPlan, Global>function: Arc<dyn DataFrameUdf + 'static>predicate_pd: bool

allow predicate pushdown optimizations

projection_pd: bool

allow projection pushdown optimizations

schema: Option<Arc<Schema>>

Implementations

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Performs the conversion.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.