Skip to main content Module logical_plan Copy item path Source pub use builder::LogicalPlanBuilder ;pub use builder::LogicalPlanBuilderOptions ;pub use builder::LogicalTableSource ;pub use builder::UNNAMED_TABLE ;pub use builder::build_asof_join_schema ;pub use builder::build_join_schema ;pub use builder::requalify_sides_if_needed ;pub use builder::table_scan ;pub use builder::union ;pub use builder::wrap_projection_for_join_if_necessary ;pub use dml::DmlStatement ;pub use dml::MergeIntoAction ;pub use dml::MergeIntoClause ;pub use dml::MergeIntoClauseKind ;pub use dml::MergeIntoOp ;pub use dml::WriteOp ;pub use display::display_schema ;pub use materialized_cte::MaterializedCte ;pub use materialized_cte::MaterializedCteId ;pub use materialized_cte::MaterializedCtePlan ;pub use materialized_cte::MaterializedCteScan ;builder This module provides a builder for creating LogicalPlans display This module provides logic for displaying LogicalPlans in various styles dml information_schema Schema and RecordBatch builders for the information_schema virtual
tables and SHOW statements. materialized_cte Logical nodes for WITH x AS MATERIALIZED (...). tree_node TreeNode based visiting and rewriting for LogicalPlan sAggregate Aggregates its input based on a set of grouping and aggregate
expressions (e.g. SUM). Analyze Runs the actual plan, and then prints the physical plan with
with execution metrics. AsOfJoin Match each left row with at most one ordered row from the right input. AsOfMatch The ordered comparison used by an AsOfJoin . ColumnUnnestList Represent the unnesting operation on a list column, such as the recursion depth and
the output column name after unnesting CreateCatalog Creates a catalog (aka “Database”). CreateCatalogSchema Creates a schema. CreateExternalCatalog Creates a catalog by invoking a registered CatalogProviderFactory. CreateExternalTable Creates an external table. CreateFunction Arguments passed to the CREATE FUNCTION statement CreateFunctionBody Part of the CREATE FUNCTION statement CreateIndex CreateMemoryTable Creates an in memory table. CreateView Creates a view. Deallocate Deallocate a prepared statement. DistinctOn Removes duplicate rows from the input DropCatalog Drops a catalog previously created with CREATE EXTERNAL CATALOG. DropCatalogSchema Drops a schema DropFunction DropTable Drops a table. DropView Drops a view. EmptyRelation Relationship produces 0 or 1 placeholder rows with specified output schema
In most cases the output schema for EmptyRelation would be empty,
however, it can be non-empty typically for optimizer rules Execute Execute a prepared statement. Explain Produces a relation with string representations of
various parts of the plan ExplainOption Options for EXPLAIN Extension Extension operator defined outside of DataFusion Filter Filters rows from its input that do not match an
expression (essentially a WHERE clause with a predicate
expression). Join Join two logical plans on one or more join columns Limit Produces the first n tuples from its input and discards the rest. OperateFunctionArg Part of the CREATE FUNCTION statement Prepare Prepare a statement but do not execute it. Prepare statements can have 0 or more
Expr::Placeholder expressions that are filled in during execution Projection Evaluates an arbitrary list of expressions (essentially a
SELECT with an expression list) on its input. RangePartitioning Logical range partitioning. RecursiveQuery A variadic query operation, Recursive CTE. Repartition ResetVariable Reset a configuration variable to its default SetVariable Set a Variable’s value – value in
ConfigOptions Show A SHOW-class SQL statement: SHOW TABLES, SHOW COLUMNS, SHOW FUNCTIONS, SHOW <variable>, SHOW CREATE TABLE, and DESCRIBE. Sort Sorts its input according to a list of sort expressions. StringifiedPlan Represents some sort of execution plan, in String form Subquery Subquery SubqueryAlias Aliased subquery TableScan Produces rows from a table provider by reference or from the context TableScanBuilder Builder for TableScan . TransactionEnd Indicator that any current transaction should be terminated TransactionStart Indicator that the following statements should be committed or rolled back atomically Union Union multiple inputs Unnest Unnest a column that contains a nested list type. See
UnnestOptions for more details. Values Values expression. See
Postgres VALUES
documentation for more details. Window Window its input based on a set of window spec and window function (e.g. SUM or RANK) DdlStatement Various types of DDL (CREATE / DROP) catalog manipulation Distinct Removes duplicate rows from the input ExplainFormat Output formats for controlling for Explain plans FetchType Different types of fetch expression in Limit plan. InvariantLevel JoinConstraint Join constraint JoinType Join type LogicalPlan A LogicalPlan is a node in a tree of relational operators (such as
Projection or Filter). Partitioning Logical partitioning schemes. PlanType Represents which type of plan, when storing multiple
for use in EXPLAIN plans ShowKind The specific SHOW-class statement carried by a Show plan. SkipType Different types of skip expression in Limit plan. Statement Various types of Statements. TransactionAccessMode Indicates if this transaction is allowed to write TransactionConclusion Indicates if a transaction was committed or aborted TransactionIsolationLevel Indicates ANSI transaction isolation level ToStringifiedPlan Trait for something that can be formatted as a stringified plan UserDefinedLogicalNode This defines the interface for LogicalPlan nodes that can be
used to extend DataFusion with custom relational operators. UserDefinedLogicalNodeCore This trait facilitates implementation of the UserDefinedLogicalNode . assert_expected_schema Returns an error if the plan does not have the expected schema.
Ignores metadata and nullability. check_subquery_expr Do necessary check on subquery expressions and fail the invalid plan projection_schema Computes the schema of the result produced by applying a projection to the input logical plan.