Skip to main content

datafusion_expr/logical_plan/
mod.rs

1// SPDX-License-Identifier: Apache-2.0
2// SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
3// SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
4
5pub mod builder;
6mod ddl;
7pub mod display;
8pub mod dml;
9mod extension;
10pub(crate) mod invariants;
11pub mod materialized_cte;
12pub use invariants::{InvariantLevel, assert_expected_schema, check_subquery_expr};
13pub mod information_schema;
14mod plan;
15mod statement;
16pub mod tree_node;
17
18pub use builder::{
19    LogicalPlanBuilder, LogicalPlanBuilderOptions, LogicalTableSource, UNNAMED_TABLE,
20    build_asof_join_schema, build_join_schema, requalify_sides_if_needed, table_scan,
21    union, wrap_projection_for_join_if_necessary,
22};
23pub use ddl::{
24    CreateCatalog, CreateCatalogSchema, CreateExternalCatalog, CreateExternalTable,
25    CreateFunction, CreateFunctionBody, CreateIndex, CreateMemoryTable, CreateView,
26    DdlStatement, DropCatalog, DropCatalogSchema, DropFunction, DropTable, DropView,
27    OperateFunctionArg,
28};
29pub use dml::{
30    DmlStatement, MergeIntoAction, MergeIntoClause, MergeIntoClauseKind, MergeIntoOp,
31    WriteOp,
32};
33pub use plan::{
34    Aggregate, Analyze, AsOfJoin, AsOfMatch, ColumnUnnestList, Distinct, DistinctOn,
35    EmptyRelation, Explain, ExplainOption, Extension, FetchType, Filter, Join,
36    JoinConstraint, JoinType, Limit, LogicalPlan, Partitioning, PlanType, Projection,
37    RangePartitioning, RecursiveQuery, Repartition, Show, ShowKind, SkipType, Sort,
38    StringifiedPlan, Subquery, SubqueryAlias, TableScan, TableScanBuilder,
39    ToStringifiedPlan, Union, Unnest, Values, Window, projection_schema,
40};
41pub use statement::{
42    Deallocate, Execute, Prepare, ResetVariable, SetVariable, Statement,
43    TransactionAccessMode, TransactionConclusion, TransactionEnd,
44    TransactionIsolationLevel, TransactionStart,
45};
46
47pub use datafusion_common::format::ExplainFormat;
48
49pub use display::display_schema;
50
51pub use extension::{UserDefinedLogicalNode, UserDefinedLogicalNodeCore};
52pub use materialized_cte::{
53    MaterializedCte, MaterializedCteId, MaterializedCtePlan, MaterializedCteScan,
54};