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 Use catalogs in the app.
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.
| Before | After |
|---|---|
| One catalog per user, showing every data source | My catalog still shows everything; an API read that names a catalog shows only its own |
| A term, tag or domain name is used once | The same name can be used again in another catalog |
| A lineage graph could use any data source | A 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 Use catalogs in the app). 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>(minefor My catalog). Back to the catalog returns to that catalog, with no search or filters; it shows only for a role with lineage:read (the page itself needs glossary:read). The old link/lineage/entity/<guid>redirects to the My catalog view of the entity.
The Catalog tab on the Lineage page shows the same table, with Open in Governance beside it. That button opens this page 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 shows500+ 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:editpermission, Settings.
The Sources tab
The tab lists the data sources of the catalog.
| Column | What it shows |
|---|---|
| Source | The source's name, then its type, for example sf_fin · snowflake |
| Entities | How 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."
Use catalogs in the app
On Governance → Catalogs, a Catalogs strip lists your catalogs. Click a name to open its page. You need glossary:edit to make, rename or delete a catalog; without it the buttons are not shown. If the workspace has no catalog type, the strip is not shown.
Pick a catalog
When at least one catalog exists, a Catalog picker appears next to the heading. If there are none, it is not shown.
- Open the Catalog picker. It lists My catalog first, then your catalogs, up to the first 100.
- Pick one.
What changes:
- The link in your browser gets
?catalog=<id>added. Copy the link to share the same choice with a colleague. - The heading stays My catalog.
- A note says "This list shows all your entities. Filtering by the chosen catalog is not available yet." The table keeps showing the same entities.
Pick My catalog again to remove ?catalog=<id> from the link.
If a shared link names a catalog that no longer exists, or that you cannot read, the choice is dropped and you see My catalog.
If a catalog cannot be loaded, the picker shows "Failed to load catalogs." with a Retry button.
Create a catalog
- Open Governance > Catalogs and click New catalog.
- Type a Name.
- Open Catalog sources and tick the data sources to include. Each pick shows as a chip. Click the chip's x to remove it. Press Esc to close the list; the dialog stays open.
- Click Create catalog.
Only data sources that DataDios has already scanned can be added. A source you just connected can join a catalog once its first metadata scan has finished. Until then, creating the catalog fails with "A source you picked has not been scanned yet — run its metadata scan, then try again."
If you can see two sources with the same name (your own and one shared with you), the list offers yours.
If a catalog with that name already exists, nothing is created and you see "Name already exists — nothing was created."
Rename a catalog
Click the pencil next to the catalog. In Edit entity, change the Name (and the sources if you like), and click Save changes.
Delete a catalog
Click the trash can next to the catalog and confirm with Delete. Deleting a catalog does not delete its data sources.
Limits
The strip and the picker show the first 100 catalogs. When more exist, the strip says "Showing the first 100 catalogs; more exist." and the picker lists "Showing the first 100 catalogs".
Create, rename and delete a catalog 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_sourcesthat is not a data source is refused with400 ref_type_mismatch. - To change the sources, send
PATCH /entities/{guid}/attributeswith a newcatalog_sourceslist. - 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 with202and 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_existsand 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 is409 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, andnullfor any other row. - An unknown
catalog_id, the guid of an entity that is not a catalog, and a catalog you cannot read are all404.
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 /entitiesstill 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/vocabularymakes 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.
| Read | Where catalog_id goes |
|---|---|
POST /entities/catalog, /entities/filter, /entities/lookup, /entities/info | Request body |
POST /entities/facets, with the attributes shape | Request body |
GET /entities, GET /entities/{guid}, GET /entities/{guid}/children, GET /entities/resolve/{guid} | Query string |
GET /entities/review_queue | Query string |
- A cursor minted inside one catalog is refused in another catalog, and outside any.
- These reads refuse
catalog_idwith400 invalid_request: theattributeandpairsshapes ofPOST /entities/facets, which read stored counts, andPOST /entities/catalogwithall_ownersorsharing: "with_me". - A request with no
catalog_idis read as before, across My catalog. - In a wide catalog,
POST /entities/catalog,POST /entities/filterandGET /entitiescan return a short or empty page that still hasnext_cursor, andcountcan be a floor: it never reads above the true number. Keep paging whilenext_cursoris 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. Only the API makes a graph from a catalog. A graph with no catalog is refused, and only that catalog's data sources can be added to it, any subset of them.
- Remove a data source from a catalog. The source also leaves the catalog's lineage graphs that hold it.
- Delete a catalog. Its lineage graphs are deleted with it. While lineage is switched off, a catalog with graphs cannot be deleted. If one of its graphs is being built, the delete fails; try again in a few minutes.
- Older graphs. An older graph that no catalog named has no catalog.
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:
| Limit | Value |
|---|---|
| Data sources in one graph | 50 |
| Lineage graphs for one user | 100 |