Skip to content

Commit

Permalink
fix: fix issues
Browse files Browse the repository at this point in the history
  • Loading branch information
iajoiner committed Nov 14, 2024
1 parent bc63f52 commit 0d76046
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 14 deletions.
2 changes: 1 addition & 1 deletion crates/proof-of-sql/src/sql/proof_plans/filter_exec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use crate::{
base::{
database::{
filter_util::filter_columns, Column, ColumnField, ColumnRef, DataAccessor, OwnedTable,
TableRef,
Table, TableRef,
},
map::{IndexMap, IndexSet},
proof::ProofError,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use crate::{
base::{
database::{
filter_util::*, owned_table_utility::*, Column, DataAccessor, OwnedTableTestAccessor,
TestAccessor,
Table, TestAccessor,
},
proof::ProofError,
scalar::Scalar,
Expand Down
2 changes: 1 addition & 1 deletion crates/proof-of-sql/src/sql/proof_plans/group_by_exec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use crate::{
group_by_util::{
aggregate_columns, compare_indexes_by_owned_columns, AggregatedColumns,
},
Column, ColumnField, ColumnRef, ColumnType, DataAccessor, OwnedTable, TableRef,
Column, ColumnField, ColumnRef, ColumnType, DataAccessor, OwnedTable, Table, TableRef,
},
map::{IndexMap, IndexSet},
proof::ProofError,
Expand Down
11 changes: 0 additions & 11 deletions crates/proof-of-sql/src/sql/proof_plans/projection_exec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,25 +91,14 @@ impl ProverEvaluate for ProjectionExec {
accessor: &'a dyn DataAccessor<S>,
) -> Table<'a, S> {
let column_refs = self.get_column_references();
<<<<<<< HEAD
let used_table = accessor.get_table(self.table.table_ref, &column_refs);
let columns: Vec<_> = self
.aliased_results
.iter()
.map(|aliased_expr| aliased_expr.expr.result_evaluate(alloc, &used_table))
.collect();
columns
=======
let used_table =
Table::<'a, S>::from_columns(&column_refs, self.table.table_ref, accessor, alloc);
Table::<'a, S>::try_from_iter(self.aliased_results.iter().map(|aliased_expr| {
(
aliased_expr.alias,
aliased_expr.expr.result_evaluate(alloc, &used_table),
)
}))
.expect("Failed to create table from iterator")
>>>>>>> 531ba7cc (refactor!: let `ProofPlan::result_evaluate` and `final_round_evaluate` return `Table`)
}

fn first_round_evaluate(&self, _builder: &mut FirstRoundBuilder) {}
Expand Down

0 comments on commit 0d76046

Please sign in to comment.