sql_query_explain.sql_dialect_trino: Explain a Trino query

View source: R/dbplyr-db.R

sql_query_explain.sql_dialect_trinoR Documentation

Explain a Trino query

Description

Trino's EXPLAIN takes the statement directly, without the parenthesised options some engines require.

Usage

sql_query_explain.sql_dialect_trino(con, sql, ...)

Arguments

con

A Trino SQL dialect object.

sql

A query.

...

Unused, for compatibility with the generic.

Details

Column discovery (sql_query_fields()) is deliberately left to dbplyr's default, which wraps the query in ⁠WHERE 0 = 1⁠. On Trino that plans without reading any data, exactly like the ⁠LIMIT 0⁠ the specification suggests, and the default is built from dbplyr internals that a backend should not reach into.

Value

The EXPLAIN statement, as SQL.


RTrino documentation built on Oct. 15, 2026, 5:08 p.m.