Skip to main content

datafusion_optimizer/simplify_expressions/
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
5//! [`SimplifyExpressions`] simplifies expressions in the logical plan,
6//! [`ExprSimplifier`] simplifies individual `Expr`s.
7
8mod cast_preimage;
9pub mod expr_simplifier;
10mod inlist_simplifier;
11mod linear_aggregates;
12mod regex;
13mod reorder_predicates;
14pub mod simplify_exprs;
15pub mod simplify_literal;
16mod simplify_predicates;
17mod udf_preimage;
18mod utils;
19
20// backwards compatibility
21pub use datafusion_expr::simplify::SimplifyContext;
22
23pub use expr_simplifier::*;
24pub(crate) use reorder_predicates::reorder_predicates;
25pub use simplify_exprs::*;
26pub use simplify_predicates::simplify_predicates;
27
28// Export for test in datafusion/core/tests/optimizer_integration.rs
29pub use datafusion_expr::expr_rewriter::GuaranteeRewriter;