Repository navigation
Warehouse Trino
The
trinoreader 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).
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).
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.
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.
Schemas, tables, views, column types, nullability, defaults, table comments and column comments.
-
No constraints, row counts or sizes. Trino exposes none in metadata (
SHOW STATSis 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.
- Catalog-and-Crawl
- Measurement (join candidates without declared keys)
- Scale-and-Cost
- Extending-CatalogReader
SchemaGuru is open source under the MIT License, Copyright (c) 2026 Rupak Chakraborty · Repository · Issues · This wiki is generated from docs/wiki/; edit it there, not here.
Start here
Components
- Catalog and Crawl
- Store
- Measurement
- Sampling
- Join Graph
- Path Search and Hub Guard
- Waypoint Rules
- Drafting
- PII and Sampling Policy
- Overlays
- Scoping
- Rendering
- Refresh and Drift
- Feedback and Guard
- Server
- Agent Integration
Using it
Warehouses
- BigQuery
- Snowflake
- Redshift
- Databricks
- PostgreSQL
- DuckDB
- ClickHouse
- SQL Server / Synapse
- Oracle
- Trino
- MySQL / MariaDB
Extending
- CatalogReader
- Store
- Retriever and Embedder
- TokenCounter
- LLMProvider
- PII Detector
- FailureClassifier
- FactKind
- Profile and Format
- ChangeClassifier
- JoinCandidateSource (planned)
- Authenticator
Project