Convert a list of Paimon predicates (ANDed together) into a single Vortex filter expression.
(
predicates: &[Predicate],
file_fields: &[DataField],
)
| 230 | |
| 231 | /// Convert a list of Paimon predicates (ANDed together) into a single Vortex filter expression. |
| 232 | fn predicates_to_vortex_expr( |
| 233 | predicates: &[Predicate], |
| 234 | file_fields: &[DataField], |
| 235 | ) -> Option<Expression> { |
| 236 | let exprs: Vec<Expression> = predicates |
| 237 | .iter() |
| 238 | .filter_map(|p| predicate_to_vortex_expr(p, file_fields)) |
| 239 | .collect(); |
| 240 | and_collect(exprs) |
| 241 | } |
| 242 | |
| 243 | /// Convert a single Paimon `Predicate` tree node into a Vortex `Expression`. |
| 244 | fn predicate_to_vortex_expr( |