Skip to content

Commit

Permalink
refactor!: remove old FilterExec and FilterResultExpr and rename …
Browse files Browse the repository at this point in the history
…`DenseFilterExec` to `FilterExec` (#137)
  • Loading branch information
iajoiner authored Sep 10, 2024
1 parent 9c25104 commit 50a093b
Show file tree
Hide file tree
Showing 21 changed files with 568 additions and 1,347 deletions.
6 changes: 3 additions & 3 deletions crates/proof-of-sql/src/sql/parse/filter_exec_builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use crate::{
},
sql::{
proof_exprs::{AliasedDynProofExpr, DynProofExpr, TableExpr},
proof_plans::DenseFilterExec,
proof_plans::FilterExec,
},
};
use indexmap::IndexMap;
Expand Down Expand Up @@ -71,8 +71,8 @@ impl<C: Commitment> FilterExecBuilder<C> {
self
}

pub fn build(self) -> DenseFilterExec<C> {
DenseFilterExec::new(
pub fn build(self) -> FilterExec<C> {
FilterExec::new(
self.filter_result_expr_list,
self.table_expr.expect("Table expr is required"),
self.where_expr
Expand Down
6 changes: 3 additions & 3 deletions crates/proof-of-sql/src/sql/parse/query_expr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -121,12 +121,12 @@ impl<C: Commitment> QueryExpr<C> {
);
}
Ok(Self {
proof_expr: DynProofPlan::DenseFilter(filter),
proof_expr: DynProofPlan::Filter(filter),
postprocessing,
})
}
} else {
// No group by, so we need to do a dense filter.
// No group by, so we need to do a filter.
let column_mapping = context.get_column_mapping();
let enriched_exprs = result_aliased_exprs
.iter()
Expand All @@ -152,7 +152,7 @@ impl<C: Commitment> QueryExpr<C> {
);
}
Ok(Self {
proof_expr: DynProofPlan::DenseFilter(filter),
proof_expr: DynProofPlan::Filter(filter),
postprocessing,
})
}
Expand Down
Loading

0 comments on commit 50a093b

Please sign in to comment.