From 68a299d876ffe438c433ffc0550ffec0cfc1c744 Mon Sep 17 00:00:00 2001 From: Discord9 Date: Thu, 22 Feb 2024 16:18:20 +0800 Subject: [PATCH] fix: after rebase --- src/flow/src/expr/linear.rs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/flow/src/expr/linear.rs b/src/flow/src/expr/linear.rs index a65fa463f24b..449aac0d4a4f 100644 --- a/src/flow/src/expr/linear.rs +++ b/src/flow/src/expr/linear.rs @@ -114,14 +114,14 @@ impl MapFilterProject { // Validate column references. assert!(predicate - .support() + .get_all_ref_columns() .into_iter() .all(|c| c < self.input_arity + self.expressions.len())); // Insert predicate as eagerly as it can be evaluated: // just after the largest column in its support is formed. let max_support = predicate - .support() + .get_all_ref_columns() .into_iter() .max() .map(|c| c + 1) @@ -145,7 +145,7 @@ impl MapFilterProject { // Validate column references. assert!(expression - .support() + .get_all_ref_columns() .into_iter() .all(|c| c < self.input_arity + self.expressions.len())); @@ -186,7 +186,7 @@ impl MapFilterProject { /// /// The main behavior is extract temporal predicates, which cannot be evaluated /// using the standard machinery. - pub fn into_plan(self) -> Result { + pub fn into_plan(self) -> Result { MfpPlan::create_from(self) } @@ -198,12 +198,12 @@ impl MapFilterProject { pub fn demand(&self) -> BTreeSet { let mut demanded = BTreeSet::new(); for (_index, pred) in self.predicates.iter() { - demanded.extend(pred.support()); + demanded.extend(pred.get_all_ref_columns()); } demanded.extend(self.projection.iter().cloned()); for index in (0..self.expressions.len()).rev() { if demanded.contains(&(self.input_arity + index)) { - demanded.extend(self.expressions[index].support()); + demanded.extend(self.expressions[index].get_all_ref_columns()); } } demanded.retain(|col| col < &self.input_arity); @@ -355,7 +355,7 @@ pub struct MfpPlan { impl MfpPlan { /// find `now` in `predicates` and put them into lower/upper temporal bounds for temporal filter to use - pub fn create_from(mut mfp: MapFilterProject) -> Result { + pub fn create_from(mut mfp: MapFilterProject) -> Result { let mut lower_bounds = Vec::new(); let mut upper_bounds = Vec::new();