marmotdata/presto
Discover catalogs, schemas, tables and views from Presto clusters
The Presto plugin discovers catalogs, schemas, tables and views from Presto clusters.
Tables are Presto's own assets by default, named <catalog>.<schema>.<table> under the Presto provider, for example mrn://asset/table/presto/memory.shop.orders. A catalog's connector says what kind of system it reads but not which server, so the plugin never guesses a native identity: tables of a catalog that is not in catalog_map stay Presto's, and a warning in the log names each such catalog because its tables won't merge with the native plugin's.
To make a catalog's tables the same assets another Marmot plugin discovers (PostgreSQL, MySQL, Hive, Iceberg and the rest of the connector map), 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
A mapped table gets the native plugin's MRN, 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). Memory and tpch tables always belong to Presto. Set zone on the plugin itself to tell two Presto clusters apart (a name you choose, not a cloud availability zone).
Required Permissions
The connecting user needs SELECT access to system.metadata.catalogs, system.runtime.nodes and each catalog's information_schema. include_stats additionally runs SHOW STATS per table. A password is only sent over HTTPS, so secure: true is required with one.
In the UI
Point and click, no config file needed.
- Open Runs and choose Create pipeline.
- Pick Presto 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 RequiredPresto coordinator hostname
portNumberPresto coordinator port
userText RequiredUsername for authentication
passwordSecretPassword (requires HTTPS)
secureYes or noUse HTTPS
ssl_cert_pathTextPath to TLS certificate file
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 Presto's own assets
catalogTextSpecific catalog to discover (all if empty)
exclude_catalogsList of textCatalogs to skip
exclude_schemasList of textSchemas to skip in every catalog
include_catalogsYes or noCreate catalog-level assets
include_viewsYes or noDiscover views and their definitions
include_columnsYes or noInclude column info in table metadata
include_statsYes or noCollect row counts with SHOW STATS (can be slow)
Assets emitted
Metadata this plugin attaches to each discovered asset.
Catalog
The metadata fields emitted for catalog assets.
Table
The metadata fields emitted for table and view assets.
Column
The per-column fields embedded in an asset's schema.