Skip to content

Data sources

A source is a database connected to eodia insights. Each source becomes a Trino catalog: its tables are referenced in SQL as catalog.schema.table, and a single query can join several sources. Adding, editing or deleting a source requires the Manage data sources permission.

EngineTrino connectorConnectionNative SQL
PostgreSQLpostgresqlhost, port (5432), database, user, password, SSLyes
MySQL / MariaDBmysqlhost, port (3306), optional database, user, password, SSLyes
SQL Serversqlserverhost, port (1433), database, user, password, encryption, trust server certificateyes
Oracleoraclehost, port (1521), service name, user, passwordyes
Snowflakesnowflakeaccount, user, password, database, warehouse, optional roleyes
MongoDBmongodbmongodb://… connection stringno
Apache IcebergicebergHive metastore, REST catalog or Glue; S3 storage (endpoint, region, keys)no
Trino connector (advanced)the one you nameconnector name and key=value propertiesno

A MySQL source exposes its databases as schemas: those named in the Database field, separated by commas (sales, crm), or, when empty, all those the user can see. The other databases are neither synchronized nor readable, not even by an administrator, and native SQL, which would reach them, is then unavailable. The Trino connector engine opens any connector your Trino knows — tpch, iceberg, hive, clickhouse… — with its properties, one per line, as in a catalog file.

An Apache Iceberg source reads Iceberg tables on S3 — AWS, MinIO, Ceph, Scality… — without writing properties: pick the catalog (Hive metastore, REST catalog, possibly with an OAuth2 token and access provided by the catalog, or AWS Glue), then the storage endpoint, region and keys. For on-premises S3, tick path-style addresses.

A view created in another Trino reads its tables with its owner’s rights — a user of that Trino, unknown here — so Trino refuses the read (“View owner does not have sufficient privileges”). In the Connection tab of the source the view reads, View owners allows it — by name, or in one click among the identities recently refused. An allowed owner only reads, only the catalogs that allow it, and never runs a query itself; the person querying the view keeps their own rights on it.

When those views read another catalog ("iceberg-raw".schema.table), there is no need to make it a source: under Technical catalogs, add it with the exact name the views cite. It is created in Trino but never shown nor synchronized — its raw tables do not duplicate the views in the explorer, the SQL editor or the copilot — and no one, administrators included, reads it directly: only the source’s views, under the names of the owners it allows. A technical catalog can serve several sources; removed from the last one citing it, or with it, it is deleted. A source already added for that purpose is attached as a technical catalog from its settings, without being recreated.

Neither plugs into an existing Trino: each creates the catalog in eodia insights’ own Trino, the only one that applies the permissions. To bring over a catalog from another Trino, copy its etc/catalog/<name>.properties file: connector.name into Connector, the rest into Properties. Templates (Iceberg with a Hive metastore, a REST catalog or Glue, Hive, Delta Lake, ClickHouse) give the usual keys; a value left empty is ignored.

Secret fields (passwords, MongoDB connection string, Trino connector properties) are encrypted with AES-256-GCM using the instance key, and never sent back to the browser: left empty in the edit form, they keep their value.

Data sources › Add a data source, then the engine and the connection form.

  1. Test connection tries the engine’s native driver. Native drivers are used only for this and for introspection: no data query ever goes through them. Oracle has none: the test creates a temporary Trino catalog, lists its schemas, then removes it.
  2. Add and sync tests again, creates the catalog in Trino (CREATE CATALOG … USING …), saves the source, then starts the sync. A source that Trino refuses to open is not saved.

The catalog name is derived from the source name (Sales Europe → sales_europe): lowercase letters, digits, _ and -, starting with a letter; a name with a hyphen is quoted in SQL ("iceberg-raw".schema.table). It never changes afterwards, since SQL references it.

When created, a source is readable by the All users group, which can write Trino SQL against it. Tighten these permissions in Permissions.

OptionEffect
Schema synchourly (default), daily, or manual only
Allow native SQLlets authorized people write in the database’s dialect (enabled by default)
Result cache (seconds)how long results read from this source are cached; empty: the instance setting
Trino catalog properties (Advanced)added to the connector’s default settings

Every SQL catalog automatically gets a 10-minute metadata cache (metadata.cache-ttl=10m) and case-insensitive name matching. The Advanced tab adds or overrides properties: timeouts, pushdown, cache size…

Deleting a source removes its catalog from Trino, its metadata and its permissions; the questions that use it stop working.

Sync the database schema starts a background job in three passes, whose progress the screen follows live:

  1. Schema: the schemas, tables and columns read from Trino’s information_schema, supplemented by the native driver — primary and foreign keys, comments, estimated row counts. The result is compared with the known structure: new items are added, what has disappeared is marked removed without losing its metadata, and a type change is flagged.
  2. Fingerprint: on a sample of 10,000 rows, the number of distinct values, the share of nulls, the minimum, the maximum, the average or the average length. It is used to pre-guess the semantic type and the format of each column.
  3. Values: the distinct values of category columns (1,000 at most), which feed the filter lists and the appearance of values.

Each engine’s system schemas are ignored. If the native driver fails, the sync makes do with Trino: keys and comments keep what was known about them, and the report names what could not be read again.

On a very large database, the structure is read schema by schema and in batches of tables, several tables are read at once (SYNC_CONCURRENCY), and each query has its own time limit (SYNC_QUERY_TIMEOUT_MS). A schema, table or column that is too slow or unreadable is skipped this time: it keeps what was known about it, and the report names it. Once a column of a table has run past the time limit, the other columns of that table wait for the next sync.

On Oracle, whose dictionary (ALL_*) is slow on a large database, introspection — read through Trino’s Oracle connector, in the source’s catalog, with no Oracle client to install — reads only the synced schemas, and reads its five parts at once, each with its own time limit: tables, columns, comments, primary keys and foreign keys. A part that is too slow is the only one skipped. On the Trino side, the case-insensitive name mapping is cached for 10 minutes instead of one, so the whole dictionary is not listed again during the sync. The setting applies to catalogs created or edited after the update, or to all of them when Trino restarts. If it is still slow, narrow the source’s schemas and have the DBA gather dictionary statistics (DBMS_STATS.GATHER_DICTIONARY_STATS).

Structure shows the source › schema › table tree on the left, and the table’s columns on the right. Everyone can view it for the tables they can read; editing it requires the Manage metadata permission.

SettingPurpose
Label and descriptionwhat the table contains, for analysts and the copilot
Entitywhat a row represents: Order, Customer…
Color and iconthe table’s appearance in lists (see below)
Visibilitynormal, hidden or technical
Display columnwhat names a row when another table refers to it

A hidden table or column is no longer offered by SQL autocompletion or to searches by the copilot and the MCP server; a hidden column also disappears from the visual editor’s lists. It is a convenience setting, not a permission: to forbid a column, see Permissions.

SettingPurpose
Label, description, visibilityas for the table
Semantic typewhat the column means (see below)
Formathow its values are displayed
Foreign keythe column it points to in another table
Unitkg, km, €, days…

The screen also shows the column’s fingerprint (sample, distinct values, nulls, minimum, maximum, average), its Trino type and its native type, and flags a type change detected at the last sync.

The semantic types:

FamilyTypes
Identityprimary key, foreign key, entity name, title
Categorycategory, status, business boolean
Textdescription, comment, e-mail, URL, image URL, avatar, phone, JSON
Geographycountry, region, city, postal code, address, latitude, longitude
Timecreation, update, event, birth, cancellation date
Measureamount, price, cost, discount, percentage, quantity, score, rating, duration

The formats:

  • number: integer, decimal, percentage (stored as a ratio or not), currency, duration (with the stored unit), rating (with its maximum), compact; decimal places, prefix, suffix, thousands separators;
  • date: default, short, long, relative style or custom pattern (dd/MM/yyyy HH:mm); hours or seconds; default granularity; time zone.

This metadata is used everywhere: visualizations, display formats, filter lists, the visual editor’s implicit joins and the copilot’s context.

For a category column, the Values tab lists the values found by the sync. Each one gets a label, a color, an icon or an image: shipped then displays as “Shipped”, in blue, with a truck. Results, filters and charts reuse this appearance: a colored value keeps its color in every series, slice and bar (see Visualizations).

Wherever an icon is chosen — a table, a value, a folder — the picker has three tabs:

  • Icons: nearly 300 icons organized by theme (statuses, commerce, people, places, time, data, communication, technical, documents, nature), and a search across the more than 2,000 of lucide — the names are in English: truck, star…;
  • Emoji: by theme, or pasted;
  • Image: a logo, a photo, a flag, by its https:// address, with a preview.

Under the table, Columns / Data switches to its first rows (100, 1,000 or 10,000), read like a question: under your identity, your row filters and masks applied. The table can be searched, filtered, sorted and exported there; Explore in a question opens the visual editor on it.

An Iceberg source (or a Trino connector that accepts them) has a Views tab: the Trino views of its schemas, with their query and what reads them — questions and dashboards. Edit reopens a view in the SQL editor, Delete removes it from the catalog after showing what will stop working. They are created from the SQL editor, Save as view (see Questions); they are always SECURITY INVOKER, read with the rights of whoever reads them.

Materialized views keep their result, computed once: a heavy computation, read fast. An administrator of the space creates them (Materialized view option of the same dialog), on an Iceberg catalog whose metastore accepts them — Hive or Glue, neither REST nor JDBC. The Views tab tells when each was computed and whether it is stale (its tables changed since); Refresh computes it again, and it refreshes by itself every hour, 6 or 12 hours, every day or every week if chosen.

In the explorer, the SQL editor and a question’s data picker, a view shows by its eye, a materialized view by its layers.

View relationships opens a source’s diagram: its tables and their foreign keys, detected by the native driver or declared by hand. Drag from a column to another table’s key to declare a relationship; select one and press Delete to remove it. This is essential for MongoDB, for which no key is detected: without relationships, the visual editor cannot join its collections on its own.

  • Copy configuration of a table or a column puts it in JSON on the clipboard; Paste configuration applies it elsewhere. Columns are matched by name; missing ones are left unchanged.
  • Describe with the copilot asks the copilot for a label, a description and, for each column, a label, a description and a semantic type. You apply its proposal or not.

eodia insights is free software by Eodia.