Skip to main content

execute

Function execute 

Source
pub async fn execute(
    ctx: &SessionContext,
    statement: UrsaStatement,
) -> Result<DataFrame>
Expand description

Run one statement on ctx. The returned frame is lazy for a query, and already applied for DDL (as with SessionContext::sql).

In a session with a database, a statement that defines an object is stored as its Display form; one whose Display does not parse back to the same statement (CREATE EXTERNAL TABLE with columns or options) needs execute_with_text.