Create a conjunction of the given predicates. If the input is empty, return a literal true. If the input contains a single predicate, return the predicate. Otherwise, return a conjunction of the predicates (e.g. `a AND b AND c`).
(
predicates: impl IntoIterator<Item = Arc<dyn PhysicalExpr>>,
)
| 110 | /// If the input contains a single predicate, return the predicate. |
| 111 | /// Otherwise, return a conjunction of the predicates (e.g. `a AND b AND c`). |
| 112 | pub fn conjunction( |
| 113 | predicates: impl IntoIterator<Item = Arc<dyn PhysicalExpr>>, |
| 114 | ) -> Arc<dyn PhysicalExpr> { |
| 115 | conjunction_opt(predicates).unwrap_or_else(|| crate::expressions::lit(true)) |
| 116 | } |
| 117 | |
| 118 | /// Create a conjunction of the given predicates. |
| 119 | /// If the input is empty or the return None. |
no test coverage detected
searching dependent graphs…