Skip to main content

Catalogs

From the DataDios release after v1.13.0, a catalog is a named group of data sources. Make one for each team or purpose, for example Finance and Sales. An API read that names a catalog (its entity list, facets and search) shows only what belongs to it. In the app, the entity table shows My catalog, a picker next to it chooses a named catalog, and each named catalog has its own page, where you see and change its data sources (see Open a catalog). To make, rename or delete a catalog in the app, see Catalogs.

A catalog is an entity of the built-in type catalog, so it is created, renamed, deleted and audited with the entity curation API, like any other entity.

BeforeAfter
One catalog per user, showing every data sourceMy catalog still shows everything; a catalog's page, or an API read that names it, shows only its own
A term, tag or domain name is used onceThe same name can be used again in another catalog
A lineage graph could use any data sourceA lineage graph belongs to one catalog and uses only that catalog's sources

What belongs to a catalog​

A catalog holds two kinds of rows:

  • The entities of its sources: every database, schema, table and column that DataDios found in one of the catalog's data sources.
  • The rows created inside it: business terms, tags, domains and entities made by hand while the catalog was named in the request.

A data source can be in several catalogs. My catalog is every row you can read, in any catalog or none. A row created outside any catalog belongs to My catalog only.

Open the catalog page​

In the left sidebar, open Governance → Catalogs, or go to /governance/catalogs. Governance is a sidebar group that holds Catalogs and Business terms. The page shows for a role with the lineage:read permission and is hidden from a role without it.

  • The entity table shows My catalog: every entity you can read. The Catalog picker does not filter it yet (see Catalogs). To see one named catalog, open its page (see Open a catalog). To read its entities through the API, see Read inside a catalog.
  • An entity's page lives inside its catalog, at /governance/catalogs/<catalog>/entities/<guid>. The trail at the top reads Governance › Catalogs › <catalog> › <entity> (My catalog for the table above). Back to the catalog returns to that catalog, with no search or filters; the button and the catalog link in the trail show only for a role with lineage:read (the entity page itself needs glossary:read). An entity that is not in that catalog shows Not in this catalog, with an Open in My catalog link (a true missing entity shows No such entity). The old link /lineage/entity/<guid> still works: it redirects to the My catalog view of the entity. A business term's page goes to Business terms instead (button Back to Business terms).

The Catalog tab on the Lineage page shows the same table as My catalog, with Open in Governance beside it. That button opens My catalog and keeps your filters.

Open a catalog​

On Governance → Catalogs, click a catalog's name in the Catalogs strip to open its page (/governance/catalogs/<guid>).

  • At the top are a breadcrumb (Catalogs › the catalog's name), the name, and a line with its description and the number of entities, for example Finance sources · 320 entities. The count stops at 500: a bigger catalog shows 500+ entities.
  • The page has the tabs Entities (it opens first: the entity table of this catalog, with Import CSV, see Import entities from a CSV), Sources, and, for a role with the glossary:edit permission, Settings.

The Sources tab​

The tab lists the data sources of the catalog.

ColumnWhat it shows
SourceThe source's name, then its type, for example sf_fin · snowflake
EntitiesHow many entities that source gives the catalog. A count past 500 shows 500+. — while it loads or if it could not be read

If a source in the list has been removed from DataDios (a retired source), it is not shown. A note above the table says how many, and that saving any change here removes them from the catalog for good. To keep them, make no change.

Add or remove sources​

You need the glossary:edit permission. Without it you can read the page but not change it, and the buttons below are not shown. The same permission is needed to make, rename or delete a catalog.

  • + Add data sources (top right) opens a card that lists the sources you can use and that the catalog does not hold yet. Tick the ones you want, then click Add N sources (Add 1 source for one). Press Escape or click the button again to close the card. If every source is already in the catalog, the card says so; if you have no data sources at all, it says to add one under Data sources first.
  • + Connect a new source, in the card, goes to Data source → Sources to connect one.
  • ⋯ → Remove on a row takes that source out of the catalog. The source itself stays in DataDios.

If a source you ticked has not been scanned yet, nothing is saved and DataDios says: "A source you picked has not been scanned yet — run its metadata scan, then try again."

Create, rename and delete a catalog with the API​

In the app, use the buttons described in Catalogs. With the API, look up the guid of the catalog type with GET /entities/types, then create the catalog with POST /entities. List its data sources, by guid, in catalog_sources:

{
"entity_type": "<catalog type guid>",
"name": "Finance",
"attributes": {
"catalog_sources": ["<data source guid>", "<data source guid>"]
}
}
  • A value in catalog_sources that is not a data source is refused with 400 ref_type_mismatch.
  • To change the sources, send PATCH /entities/{guid}/attributes with a new catalog_sources list.
  • To rename it, send PATCH /entities/{guid}/name. The catalog keeps its guid and its rows.
  • To delete it, send DELETE /entities/vocabulary/{guid} with {"confirm": true}. It is accepted with 202 and finishes in the background.

When a catalog is deleted, its lineage graphs are deleted with it. While lineage is switched off for the workspace, a catalog that has graphs cannot be deleted: the delete fails with Turn lineage on to delete this catalog: its lineage graphs are deleted with it. If one of its graphs is being built, the delete fails with The lineage graph "<name>" is being built; try again in a few minutes. Nothing else it held is lost: its data sources stay, and the rows created inside it move to My catalog. When a data source is deleted, it leaves every catalog that listed it.

Create inside a catalog​

Send catalog_id, the catalog's guid, with POST /entities and the new row belongs to that catalog:

{
"entity_type": "<tag type guid>",
"name": "Revenue",
"catalog_id": "<Finance catalog guid>"
}
  • Without catalog_id, the row belongs to My catalog only.
  • The row records its catalog when it is created and does not change it later.
  • A name is used once per catalog. A second "Revenue" in Finance, in any letter case, is refused with 409 entity_already_exists and writes nothing, because the name is matched without regard to letter case. "Revenue" in Sales, or outside any catalog, is a separate row. Renaming a row to a name that differs only in letter case from another row's name in the same catalog is 409 name_already_in_use. Looking a name up inside a catalog finds that catalog's own row first.
  • My catalog shows both "Revenue" rows. Each row in a read carries catalog_id: the catalog's guid for a row made inside one, and null for any other row.
  • An unknown catalog_id, the guid of an entity that is not a catalog, and a catalog you cannot read are all 404.

The same applies to terms, tags and domains, so Finance and Sales can each have a "Revenue" term. A term made in Finance is listed in Finance and not in Sales.

POST /entities/vocabulary and POST /entities/curation-jobs also take an optional catalog_id (1 to 64 characters; longer is 400, an unknown or unreadable catalog is 404):

  • Only catalog-level types use it (a business term, a category, a type you made). On these two routes, which create by name, a tag, a domain or another shared vocabulary value ignores catalog_id, so one "PII" is found and reused, not copied into each catalog. POST /entities still makes it in the catalog.
  • A term, category or other catalog-level value named in bulk curation first reuses one of that name inside the catalog, then one outside any catalog, and only then makes a new one in the catalog. POST /entities/vocabulary makes the new one in the catalog.

POST /entities/bulk-create-jobs (CSV import) takes catalog_id as a form field; a blank value means no catalog. A bad or unreadable catalog is 400 or 404 before the file is staged. If the catalog is deleted while the job runs, the remaining rows are skipped as catalog_unavailable.

Read inside a catalog​

Send catalog_id with one of the reads in the table below and it returns only the rows inside that catalog: the rows of its sources and the rows created in it. Outside rows are handled per read: GET /entities/{guid} and GET /entities/resolve/{guid} answer 404 for a row outside it; /entities/lookup leaves it out; /entities/info returns it as unresolved (not_found) in a 200; and GET /entities/{guid}/children of an outside parent is a 200 with only the children inside.

ReadWhere catalog_id goes
POST /entities/catalog, /entities/filter, /entities/lookup, /entities/infoRequest body
POST /entities/facets, with the attributes shapeRequest body
GET /entities, GET /entities/{guid}, GET /entities/{guid}/children, GET /entities/resolve/{guid}Query string
GET /entities/review_queueQuery string
  • A cursor minted inside one catalog is refused in another catalog, and outside any.
  • These reads refuse catalog_id with 400 invalid_request: the attribute and pairs shapes of POST /entities/facets, which read stored counts, and POST /entities/catalog with all_owners or sharing: "with_me".
  • A request with no catalog_id is read as before, across My catalog.
  • In a wide catalog, POST /entities/catalog, POST /entities/filter and GET /entities can return a short or empty page that still has next_cursor, and count can be a floor: it never reads above the true number. Keep paging while next_cursor is present; a client that stops on an empty page misses rows.

Lineage graphs in a catalog​

A lineage graph belongs to a catalog. A catalog can have many graphs, or none. A catalog does not get a graph by itself.

  • Make a graph. In Lineage, select New workflow (or Create your first workspace when there is none) and pick the catalog first. Only that catalog's data sources can be added to the graph, any subset of them. A graph with no catalog is refused.
  • Make one with the catalog. In the New catalog dialog, turn on Create a lineage graph from these sources and give the graph a name. The switch is off by default. The graph is an ordinary graph that you can edit, with the catalog's data sources. If the catalog is made but the graph is not, the app says Its lineage graph could not be made and why.
  • See where a graph belongs. A graph's card and its page say Part of catalog and the catalog's name. An older graph that no catalog named says Not in a catalog.
  • Remove a data source from a catalog. When the catalog has lineage graphs, the dialog asks first and says It is also removed from any of this catalog's N lineage graphs that include it, then names the catalog's graphs. The source leaves the graphs that hold it.
  • Delete a catalog. The confirmation names its lineage graphs and says it deletes them. The button reads Delete catalog and 2 graphs when it has two.

Over the API, POST /data-lineage/graphs needs catalog_id, the catalog's guid: 400 without it, 404 for a catalog that does not exist. POST /data-lineage/graphs/{id}/data-sources refuses a data source that is not in the graph's catalog with 400. POST /entities for a catalog takes an optional lineage_graph with a name to make the graph with it; lineage_graph on a type other than a catalog is 400. A graph is not made past these limits:

LimitValue
Data sources in one graph50
Lineage graphs for one user100