mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-01-08 22:32:55 +00:00
feat: predicate extractor (region prune part 1) (#6729)
* feat: predicate extractor (region prune part 1) Signed-off-by: Ruihang Xia <waynestxia@gmail.com> * stricter check Signed-off-by: Ruihang Xia <waynestxia@gmail.com> --------- Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
This commit is contained in:
@@ -252,6 +252,18 @@ impl PartitionExpr {
|
||||
Ok(expr)
|
||||
}
|
||||
|
||||
pub fn lhs(&self) -> &Operand {
|
||||
&self.lhs
|
||||
}
|
||||
|
||||
pub fn rhs(&self) -> &Operand {
|
||||
&self.rhs
|
||||
}
|
||||
|
||||
pub fn op(&self) -> &RestrictedOp {
|
||||
&self.op
|
||||
}
|
||||
|
||||
pub fn try_as_physical_expr(
|
||||
&self,
|
||||
schema: &arrow::datatypes::SchemaRef,
|
||||
|
||||
@@ -17,6 +17,8 @@ mod commutativity;
|
||||
mod merge_scan;
|
||||
mod merge_sort;
|
||||
mod planner;
|
||||
#[allow(dead_code)]
|
||||
mod predicate_extractor;
|
||||
|
||||
pub use analyzer::{DistPlannerAnalyzer, DistPlannerOptions};
|
||||
pub use merge_scan::{MergeScanExec, MergeScanLogicalPlan};
|
||||
|
||||
1176
src/query/src/dist_plan/predicate_extractor.rs
Normal file
1176
src/query/src/dist_plan/predicate_extractor.rs
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user