marmotdata/trino
Discover catalogs, schemas, and tables from Trino clusters
The Trino plugin discovers all catalogs (connected data sources like PostgreSQL, Hive, Iceberg, S3, etc.), their schemas, and tables/views.
Required Permissions
The connecting user needs SELECT access to system.metadata.catalogs, system.metadata.table_comments, and each catalog's information_schema. A read-only user with access to these system tables is sufficient.
Catalog mapping and MRNs
Trino sits in front of other systems, and a catalog name says nothing about which server is behind it, so the plugin never guesses. Tables of a catalog that is not listed in catalog_map are Trino's own assets, named <catalog>.<schema>.<table> under the Trino provider, for example mrn://asset/table/trino/warehouse_pg.public.orders. A warning in the log names each unmapped catalog, because its tables won't merge with the native plugin's.
To make a catalog's tables the same assets the native plugin discovers, map it to the zone of that plugin and, for connectors whose native names start with a database, to the database:
catalog_map:
warehouse_pg:
zone: prod-eu # the zone option of the PostgreSQL plugin
database: shop # the database the catalog points at
lake:
zone: "" # Hive or Iceberg catalogs need no database
A mapped catalog's tables get the MRN the native plugin gives them, for example mrn://asset/table/postgresql@prod-eu/shop.public.orders. database is required for PostgreSQL, SQL Server, Oracle, Redshift and Snowflake (the database) and BigQuery (the project); a catalog of one of those connectors without it is treated as unmapped. Query grants resolve tables the same way.
Set zone on the plugin itself to tell two Trino clusters apart (a name you choose, not a cloud availability zone); it becomes part of the MRN of the catalog and unmapped table assets.
AI Enrichment
When your Trino instance has AI functions configured, the plugin can automatically enrich discovered assets:
- Auto-generate descriptions (
ai_generate_descriptions: true) — Uses the AI connector'sai_genfunction to produce one-sentence descriptions for tables that have no comment. - Auto-classify tables (
ai_classify_tables: true) — Uses the AI connector'sai_classifyfunction to assign a category label (e.g.,analytics,pii,financial) to each table, added as a tag likeai-category:pii.
AI Setup
- Configure an AI connector in your Trino installation (e.g.,
ai.properties) - Set
ai_catalogto the catalog name of that connector - Enable
ai_generate_descriptionsand/orai_classify_tables - Optionally customise
ai_classify_labelsandai_max_enrichments
AI enrichment is best-effort - failures are logged as warnings but do not prevent normal discovery from completing.
In the UI
Point and click, no config file needed.
- Open Runs and choose Create pipeline.
- Pick Trino from the plugin list.
- Fill in the settings, set a schedule and save.
With the CLI
Save a YAML config, then run marmot ingest.
Not using plugins? Other ways to populate Marmot
Configuration
Fields marked Required must be set.
tagsList of textTags to apply to discovered assets
external_linksList of groupsExternal links to show on all assets
nameTextDisplay name for the link
iconTextIcon identifier for the link
urlTextURL to the external resource
filterGroup of settingsFilter discovered assets by name (regex)
includeList of textInclude patterns for resource names (regex)
excludeList of textExclude patterns for resource names (regex)
zoneTextTells this system apart from others of the same technology and becomes part of every asset's MRN
hostText RequiredTrino coordinator hostname
portNumberTrino coordinator port
userText RequiredUsername for authentication
passwordSecretPassword (requires HTTPS)
secureYes or noUse HTTPS
ssl_cert_pathTextPath to TLS certificate file
access_tokenSecretJWT bearer token
catalog_mapTextMaps a catalog name to the native system it reads, as {zone, database}. A mapped catalog's tables get the MRN the native plugin gives them so both discover one asset; an unmapped catalog's tables stay Trino's own assets
catalogTextSpecific catalog to discover (all if empty)
exclude_catalogsList of textCatalogs to skip
include_catalogsYes or noCreate catalog-level assets
include_columnsYes or noInclude column info in table metadata
include_statsYes or noCollect table statistics (can be slow)
ai_catalogTextName of the AI connector catalog (empty = disabled)
ai_generate_descriptionsYes or noAuto-generate descriptions for undocumented tables
ai_classify_tablesYes or noAuto-classify tables into categories
ai_classify_labelsList of textCustom classification labels
ai_max_enrichmentsNumberMax tables to enrich with AI (0 = unlimited)
Assets emitted
Metadata this plugin attaches to each discovered asset.
Catalog
Trino catalog metadata fields
Schema
Trino schema metadata fields
Table
Trino table/view metadata fields
Column
Trino column metadata fields