Skip to main content

Module sql

Module sql 

Source
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.