Skip to main content

LogicalPlan

Enum LogicalPlan 

Source
pub enum LogicalPlan {
Show 13 variants DataFrameScan { df: DataFrame, }, CsvScan { path: PathBuf, predicate: Option<Expr>, projection: Option<Vec<String>>, }, ParquetScan { path: PathBuf, predicate: Option<Expr>, projection: Option<Vec<String>>, }, Projection { input: Box<LogicalPlan>, exprs: Vec<Expr>, kind: ProjectionKind, }, Filter { input: Box<LogicalPlan>, predicate: Expr, }, Aggregate { input: Box<LogicalPlan>, group_by: Vec<Expr>, aggs: Vec<Expr>, }, Join { left: Box<LogicalPlan>, right: Box<LogicalPlan>, keys: JoinKeys, how: JoinType, }, Sort { input: Box<LogicalPlan>, options: SortOptions, }, Slice { input: Box<LogicalPlan>, offset: usize, len: usize, from_end: bool, }, Unique { input: Box<LogicalPlan>, subset: Option<Vec<String>>, }, FillNull { input: Box<LogicalPlan>, fill: FillNull, }, DropNulls { input: Box<LogicalPlan>, subset: Option<Vec<String>>, }, NullCount { input: Box<LogicalPlan>, },
}
Expand description

Logical plan nodes and projection kinds. Logical query plan nodes for LazyFrame.

Variants§

§

DataFrameScan

Scan an in-memory DataFrame.

Fields

§

CsvScan

Scan a CSV file (predicate/projection may be pushed down).

Fields

§path: PathBuf
§predicate: Option<Expr>
§projection: Option<Vec<String>>
§

ParquetScan

Scan a Parquet file (predicate/projection may be pushed down).

Fields

§path: PathBuf
§predicate: Option<Expr>
§projection: Option<Vec<String>>
§

Projection

Projection node (select or with_columns).

Fields

§exprs: Vec<Expr>
§

Filter

Filter node.

Fields

§predicate: Expr
§

Aggregate

Aggregate node (group keys and aggregations).

Fields

§group_by: Vec<Expr>
§aggs: Vec<Expr>
§

Join

Join two inputs.

§

Sort

Sort input rows.

Fields

§options: SortOptions
§

Slice

Slice rows (used for head/tail).

Fields

§offset: usize
§len: usize
§from_end: bool
§

Unique

Remove duplicate rows.

Fields

§subset: Option<Vec<String>>
§

FillNull

Fill nulls using a scalar or strategy.

Fields

§

DropNulls

Drop rows containing nulls.

Fields

§subset: Option<Vec<String>>
§

NullCount

Count nulls per column.

Fields

Implementations§

Source§

impl LogicalPlan

Source

pub fn display(&self) -> String

Render this plan as a readable string (used by explain() and tests).

Trait Implementations§

Source§

impl Clone for LogicalPlan

Source§

fn clone(&self) -> LogicalPlan

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for LogicalPlan

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

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

fn clone_into(&self, target: &mut T)

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

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.