Skip to content

Warehouse Trino

github-actions[bot] edited this page Nov 24, 2026 · 1 revision

Warehouse: Trino

The trino reader crawls every connector catalog from <catalog>.information_schema (Trino is federated: each catalog is a SchemaGuru catalog). Trino exposes no constraints, row counts or sizes in metadata, so those stay unknown and joins come only from measured candidates. Validated against a real Trino server in CI (service container).

Dialect name: trino (extra: pip install schemaguru[trino], driver trino).

Metadata sources

SHOW CATALOGS, then per catalog <catalog>.information_schema.{schemata, tables, columns} and system.metadata.table_comments for table comments. Trino is federated: every connector catalog is a SchemaGuru catalog and refs carry it (system is skipped).

Permissions needed

The Trino user needs access to the catalogs to crawl; information_schema shows only what the user may see. Table comments need read access to system.metadata.table_comments. Nothing is written.

Cost

Metadata queries only, but they are executed by the connector behind each catalog, so a slow federated source (a remote database, a Hive metastore) makes a crawl slow. Use scope filters to exclude catalogs you do not need.

What is reported

Schemas, tables, views, column types, nullability, defaults, table comments and column comments.

Quirks

  • No constraints, row counts or sizes. Trino exposes none in metadata (SHOW STATS is per-table and connector-dependent), so those are unknown; constraints() returns nothing.
  • Catalog names cannot be bind parameters; the reader quotes them as identifiers (" doubled). Every value is bound.
  • Comment support depends on the connector (the memory connector supports table and column comments; others may return NULL).
  • View column nullability is reported as unknown.
  • Type text is Trino's (varchar(100), timestamp(3) with time zone, array(varchar), row(...), map(...)).
  • Tables are ordered and paged by name.

See also

Clone this wiki locally