datafusion.unparser
This module provides support for unparsing datafusion plans to SQL.
For additional information about unparsing, see https://docs.rs/datafusion-sql/latest/datafusion_sql/unparser/index.html
Module Contents
-
class datafusion.unparser.Dialect(dialect: datafusion._internal.unparser.Dialect)
DataFusion data catalog.
This constructor is not typically called by the end user.
-
static default() → Dialect
Create a new default dialect.
-
static duckdb() → Dialect
Create a new DuckDB dialect.
-
static mysql() → Dialect
Create a new MySQL dialect.
-
static postgres() → Dialect
Create a new PostgreSQL dialect.
-
static sqlite() → Dialect
Create a new SQLite dialect.
-
dialect
-
class datafusion.unparser.Unparser(dialect: Dialect)
DataFusion unparser.
This constructor is not typically called by the end user.
-
plan_to_sql(plan: datafusion.plan.LogicalPlan) → str
Convert a logical plan to a SQL string.
-
with_pretty(pretty: bool) → Unparser
Set the pretty flag.
-
unparser