Skip to content

Commit

Permalink
fix: address NITs
Browse files Browse the repository at this point in the history
  • Loading branch information
iajoiner committed Dec 4, 2024
1 parent 3bb2268 commit 383320c
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions crates/proof-of-sql/src/base/proof/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ pub enum ProofError {
#[snafu(display("Verification error: {error}"))]
/// This error occurs when a proof failed to verify.
VerificationError { error: &'static str },
/// Unsupported error
#[snafu(display("Unsupported error: {error}"))]
UnsupportedError { error: &'static str },
/// This error occurs when a query plan is not supported.
#[snafu(display("Unsupported query plan: {error}"))]
UnsupportedQueryPlan { error: &'static str },
}
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 @@ -286,7 +286,7 @@ pub(super) fn verify_filter<S: Scalar>(
}

#[allow(clippy::too_many_arguments, clippy::many_single_char_names)]
pub(crate) fn prove_filter<'a, S: Scalar + 'a>(
pub(super) fn prove_filter<'a, S: Scalar + 'a>(
builder: &mut FinalRoundBuilder<'a, S>,
alloc: &'a Bump,
alpha: S,
Expand Down
2 changes: 1 addition & 1 deletion crates/proof-of-sql/src/sql/proof_plans/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ mod projection_exec_test;
pub(crate) mod test_utility;

mod filter_exec;
pub(super) use filter_exec::FilterExec;
pub(crate) use filter_exec::FilterExec;
#[cfg(test)]
pub(crate) use filter_exec::OstensibleFilterExec;
#[cfg(all(test, feature = "blitzar"))]
Expand Down
4 changes: 2 additions & 2 deletions crates/proof-of-sql/src/sql/proof_plans/slice_exec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ where
) -> Result<TableEvaluation<S>, ProofError> {
// 1. columns
// We do not support `GroupByExec` as input for now
if let DynProofPlan::GroupBy(_) = *self.input {
return Err(ProofError::UnsupportedError {
if matches!(*self.input, DynProofPlan::GroupBy(_)) {
return Err(ProofError::UnsupportedQueryPlan {
error: "GroupByExec as input for another plan is not supported",
});
}
Expand Down
2 changes: 1 addition & 1 deletion crates/proof-of-sql/src/sql/proof_plans/slice_exec_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,7 @@ fn we_cannot_prove_a_slice_exec_if_it_has_groupby_as_input_for_now() {
assert!(matches!(
res.verify(&expr, &accessor, &()),
Err(QueryError::ProofError {
source: ProofError::UnsupportedError { .. }
source: ProofError::UnsupportedQueryPlan { .. }
})
));
}

0 comments on commit 383320c

Please sign in to comment.