Skip to main content

datafusion_physical_expr/
lib.rs

1// Licensed to the Apache Software Foundation (ASF) under one
2// or more contributor license agreements.  See the NOTICE file
3// distributed with this work for additional information
4// regarding copyright ownership.  The ASF licenses this file
5// to you under the Apache License, Version 2.0 (the
6// "License"); you may not use this file except in compliance
7// with the License.  You may obtain a copy of the License at
8//
9//   http://www.apache.org/licenses/LICENSE-2.0
10//
11// Unless required by applicable law or agreed to in writing,
12// software distributed under the License is distributed on an
13// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14// KIND, either express or implied.  See the License for the
15// specific language governing permissions and limitations
16// under the License.
17
18#![doc(
19    html_logo_url = "https://raw.githubusercontent.com/apache/datafusion/19fe44cf2f30cbdd63d4a4f52c74055163c6cc38/docs/logos/standalone_logo/logo_original.svg",
20    html_favicon_url = "https://raw.githubusercontent.com/apache/datafusion/19fe44cf2f30cbdd63d4a4f52c74055163c6cc38/docs/logos/standalone_logo/logo_original.svg"
21)]
22#![cfg_attr(docsrs, feature(doc_cfg))]
23// Make sure fast / cheap clones on Arc are explicit:
24// https://github.com/apache/datafusion/issues/11143
25#![deny(clippy::clone_on_ref_ptr)]
26#![cfg_attr(test, allow(clippy::needless_pass_by_value))]
27
28// Backward compatibility
29pub mod aggregate;
30pub mod analysis;
31pub mod binary_map {
32    pub use datafusion_physical_expr_common::binary_map::{ArrowBytesSet, OutputType};
33}
34pub mod async_scalar_function;
35pub mod equivalence;
36pub mod expressions;
37pub mod higher_order_function;
38pub mod intervals;
39mod partitioning;
40mod physical_expr;
41pub mod planner;
42pub mod projection;
43mod scalar_function;
44pub mod scalar_subquery;
45pub mod simplifier;
46pub mod statistics;
47pub mod utils;
48pub mod window;
49
50// backwards compatibility
51pub mod execution_props {
52    pub use datafusion_expr::execution_props::ExecutionProps;
53    pub use datafusion_expr::var_provider::{VarProvider, VarType};
54}
55
56pub use aggregate::groups_accumulator::{GroupsAccumulatorAdapter, NullState};
57pub use analysis::{AnalysisContext, ExprBoundaries, analyze};
58pub use equivalence::{
59    AcrossPartitions, ConstExpr, EquivalenceProperties, calculate_union,
60};
61pub use partitioning::{Distribution, Partitioning};
62pub use physical_expr::{
63    add_offset_to_expr, add_offset_to_physical_sort_exprs, create_lex_ordering,
64    create_ordering, create_physical_sort_expr, create_physical_sort_exprs,
65    physical_exprs_bag_equal, physical_exprs_contains, physical_exprs_equal,
66};
67
68pub use datafusion_physical_expr_common::physical_expr::{PhysicalExpr, PhysicalExprRef};
69pub use datafusion_physical_expr_common::sort_expr::{
70    LexOrdering, LexRequirement, OrderingRequirements, PhysicalSortExpr,
71    PhysicalSortRequirement,
72};
73
74pub use higher_order_function::HigherOrderFunctionExpr;
75pub use planner::{create_physical_expr, create_physical_exprs};
76pub use scalar_function::ScalarFunctionExpr;
77pub use simplifier::PhysicalExprSimplifier;
78pub use utils::{conjunction, conjunction_opt, split_conjunction};
79
80// For backwards compatibility
81pub mod tree_node {
82    pub use datafusion_physical_expr_common::tree_node::ExprContext;
83}