Crate datafusion_sql

Source
Expand description

This crate provides:

  1. A SQL parser, DFParser, that translates SQL query text into an abstract syntax tree (AST), Statement.

  2. A SQL query planner SqlToRel that creates LogicalPlans from Statements.

  3. A SQL unparser that converts Exprs and LogicalPlans into SQL query text.

Re-exports§

pub use sqlparser;

Modules§

parser
DFParser: DataFusion SQL Parser based on sqlparser
planner
SqlToRel: SQL Query Planner (produces LogicalPlan from SQL AST)
unparser
Unparser for converting Expr to SQL text
utils
SQL Utility Functions

Structs§

ResolvedTableReference
A fully resolved path to a table of the form “catalog.schema.table”

Enums§

TableReference
A multi part identifier (path) to a table that may require further resolution (e.g. foo.bar).