Combines an array of filter expressions into a single filter expression consisting of the input filter expressions joined with logical AND. Returns None if the filters array is empty. # Example ``` # use datafusion_expr::{col, lit}; # use datafusion_expr::utils::conjunction; // a=1 AND b=2 let expr = col("a").eq(lit(1)).and(col("b").eq(lit(2))); // [a=1, b=2] let split = vec![col("a").eq(lit(1)
(filters: impl IntoIterator<Item = Expr>)
| 1196 | /// assert_eq!(conjunction(split), Some(expr)); |
| 1197 | /// ``` |
| 1198 | pub fn conjunction(filters: impl IntoIterator<Item = Expr>) -> Option<Expr> { |
| 1199 | filters.into_iter().reduce(Expr::and) |
| 1200 | } |
| 1201 | |
| 1202 | /// Combines an array of filter expressions into a single filter |
| 1203 | /// expression consisting of the input filter expressions joined with |
searching dependent graphs…