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_auto_cfg))]
23// Make cheap clones clear: https://github.com/apache/datafusion/issues/11143
24#![deny(clippy::clone_on_ref_ptr)]
25
26// Backward compatibility
27pub mod aggregate;
28pub mod analysis;
29pub mod binary_map {
30    pub use datafusion_physical_expr_common::binary_map::{ArrowBytesSet, OutputType};
31}
32pub mod equivalence;
33pub mod expressions;
34pub mod intervals;
35mod partitioning;
36mod physical_expr;
37pub mod planner;
38mod scalar_function;
39pub mod udf {
40    #[allow(deprecated)]
41    pub use crate::scalar_function::create_physical_expr;
42}
43pub mod statistics;
44pub mod utils;
45pub mod window;
46
47// backwards compatibility
48pub mod execution_props {
49    pub use datafusion_expr::execution_props::ExecutionProps;
50    pub use datafusion_expr::var_provider::{VarProvider, VarType};
51}
52
53pub use aggregate::groups_accumulator::{GroupsAccumulatorAdapter, NullState};
54pub use analysis::{analyze, AnalysisContext, ExprBoundaries};
55pub use equivalence::{
56    calculate_union, AcrossPartitions, ConstExpr, EquivalenceProperties,
57};
58pub use partitioning::{Distribution, Partitioning};
59pub use physical_expr::{
60    physical_exprs_bag_equal, physical_exprs_contains, physical_exprs_equal,
61    PhysicalExprRef,
62};
63
64pub use datafusion_physical_expr_common::physical_expr::PhysicalExpr;
65pub use datafusion_physical_expr_common::sort_expr::{
66    LexOrdering, LexRequirement, PhysicalSortExpr, PhysicalSortRequirement,
67};
68
69pub use planner::{create_physical_expr, create_physical_exprs};
70pub use scalar_function::ScalarFunctionExpr;
71
72pub use datafusion_physical_expr_common::utils::reverse_order_bys;
73pub use utils::split_conjunction;
74
75// For backwards compatibility
76pub mod tree_node {
77    pub use datafusion_physical_expr_common::tree_node::ExprContext;
78}