Skip to main content

datafusion_physical_expr/expressions/
mod.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//! Defines physical expressions that can evaluated at runtime during query execution
19
20#[macro_use]
21mod binary;
22mod case;
23mod cast;
24mod column;
25mod dynamic_filters;
26mod in_list;
27mod is_not_null;
28mod is_null;
29mod lambda;
30mod lambda_variable;
31mod like;
32mod literal;
33mod negative;
34mod no_op;
35mod not;
36mod try_cast;
37mod unknown_column;
38
39pub use crate::PhysicalSortExpr;
40/// Module with some convenient methods used in expression building
41pub use crate::aggregate::stats::StatsType;
42
43pub use binary::{BinaryExpr, binary, similar_to};
44pub use case::{CaseExpr, case};
45pub use cast::{CastExpr, cast};
46pub use column::{Column, col, with_new_schema};
47pub use datafusion_expr::utils::format_state_name;
48pub use dynamic_filters::{DynamicFilterPhysicalExpr, Inner as DynamicFilterInner};
49pub use in_list::{InListExpr, in_list};
50pub use is_not_null::{IsNotNullExpr, is_not_null};
51pub use is_null::{IsNullExpr, is_null};
52pub use lambda::{LambdaExpr, lambda};
53pub use lambda_variable::{LambdaVariable, lambda_variable};
54pub use like::{LikeExpr, like};
55pub use literal::{Literal, lit};
56pub use negative::{NegativeExpr, negative};
57pub use no_op::NoOp;
58pub use not::{NotExpr, not};
59pub use try_cast::{TryCastExpr, try_cast};
60pub use unknown_column::UnKnownColumn;
61
62pub(crate) use cast::cast_with_target_field;