Expand description
This crate converts a DataFusion
LogicalPlan
to a ProofPlan
and Postprocessing
Modules§
- postprocessing
- Proof of SQL Postprocessing. Used when the last step of the logical plan is an unprovable projection.
Structs§
- PoSql
Context Provider - A
ContextProvider
implementation for Proof of SQL - Proof
Plan With Postprocessing - A
DynProofPlan
with optional postprocessing
Enums§
- Planner
Error - Proof of SQL Planner error
Functions§
- column_
fields_ to_ schema - Convert a Vec
to a Schema - expr_
to_ proof_ expr - Convert an [
datafusion::expr::Expr
] toDynProofExpr
- get_
table_ refs_ from_ statement - Given a
Statement
retrieves all unique tables in the query - logical_
plan_ to_ proof_ plan - Visit a [
datafusion::logical_plan::LogicalPlan
] and return aDynProofPlan
- logical_
plan_ to_ proof_ plan_ with_ postprocessing - Visit a [
datafusion::logical_plan::LogicalPlan
] and return aDynProofPlan
with optional postprocessing - sql_
to_ proof_ plans - Convert a SQL query to a
DynProofPlan
using schema from provided tables - sql_
to_ proof_ plans_ with_ postprocessing - Convert a SQL query to a
ProofPlanWithPostprocessing
using schema from provided tables - statement_
with_ uppercase_ identifiers - Returns the sqlparser statement with all of its column/table identifiers uppercased.
- uppercase_
identifier - Returns an uppercased version of Ident Leaving this as public because the sdk also uses this function
Type Aliases§
- Planner
Result - Proof of SQL Planner result