Expand description
This crate converts a DataFusion LogicalPlan to a ProofPlan
Structs§
- PoSql
Context Provider - A
ContextProviderimplementation for Proof of SQL
Enums§
- Aggregate
Plan Error - Errors encountered while converting an aggregate logical plan.
- Join
Plan Error - Errors encountered while converting a join logical plan.
- Logical
Plan Node Kind - Kind of
DataFusionlogical plan node presented to the Proof of SQL converter. - Planner
Error - Proof of SQL Planner error
Functions§
- column_
fields_ to_ schema - Convert a Vec
to a Schema - datafusion_
config_ no_ normalization - Since all of our table identifiers/column identifiers are stored and communicated in all-caps, we need to disable this datafusion setting that will coerce identifiers to lowercase.
- expr_
to_ proof_ expr - Convert a
DataFusionExprinto a provableDynProofExpr, usingschemato resolve column references and their types. - get_
table_ refs_ from_ statement - Given a
Statementretrieves all unique tables in the query - logical_
plan_ to_ proof_ plan - Visit a [
datafusion::logical_plan::LogicalPlan] and return aDynProofPlan - sql_
to_ proof_ plans - Convert a SQL query to a
DynProofPlanusing 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