Expand description
SQL parsing and execution; returns root-owned DataFrame.
Enums§
- Statement
- A top-level statement (SELECT, INSERT, CREATE, etc.)
Functions§
- execute_
sql - Parse a SQL string and execute it using the session’s catalog. Supports: SELECT (columns or *), FROM single table or two-table JOIN, WHERE (basic predicates), GROUP BY + aggregates, ORDER BY, LIMIT.
- execute_
sql_ root - Execute SQL and return root-owned DataFrame.
- parse_
sql - Parse a single SQL statement (SELECT or DDL: CREATE SCHEMA / CREATE DATABASE / DROP TABLE). Delegates to the spark-sql-parser crate.