Data catalogue

The catalogue is one list of everything the platform holds: every lake table, every object type and every metric, each with its columns or properties, owner, size, version, lineage, certification and controlled tags. It answers search with the caller's own access, so what someone cannot see does not exist for them in any list. A sync registers the tables in a Unity Catalog (open source) server, so other engines can find them by name

3 kindsDatasets, object types and metrics
SearchableNames, columns, descriptions, owners and tag values
Your accessHidden entries answer as not found, everywhere
Open catalogueTables registered in Unity Catalog (open source)

In the platform today

Built
  • The catalogue, its search and lineage, certification, controlled tags, access requests and the Unity Catalog sync run in the platform service with tests, on the demo airline
  • The Catalogue screen in Data lists entries with their certification and tags, opens lineage, and handles access requests, in the app when connected to the platform service

Entries

KindWhat it coversExample
DatasetEvery lake table in every schema: raw, gold, objects, ops and any othergold.repair_orders
Object typeEvery object type in the ontology, with its properties and the tables that back and store itrepair-order
MetricEvery metric definitiondispatch-reliability

Each entry shows its columns or properties with their types, the owner group, a description, the row count, the Delta Lake version and last update, its lineage neighbours, its certification and its controlled tags. Owners come from governance.owners: a default group, then a schema, a pipeline (which owns what it builds) or a single object type

governance:
  certifiers: [quality]
  owners:
    default: admins
    raw: maintenance-control                # a schema
    supply: stores                          # a pipeline: owns what it builds
    repair-order: stores                    # an object type
  datasets:
    gold.repair_orders:
      { description: Repair orders sent to vendors, tags: { classification: confidential } }

What you can see

An entry is visible only to people who could read what it describes. A dataset carries the access label of the object type it backs or stores, of a document source built on it, or one set under governance.datasets; a controlled tag value can also limit readers to named groups. A hidden entry answers as not found in lists, search, lineage and detail alike, so the catalogue never confirms that something exists to someone who cannot read it. Removed entries, past the end of a deprecation, are hidden from everyone but administrators

Search

GET /api/v2/catalog/search?q=repair orders

Search matches every word of the query across ids, names, columns, descriptions, tag values and owners. Matches in an id or name rank highest. Certified entries rank above others, deprecated entries rank lower, and removed entries are shown to administrators only

Lineage

GET /api/v2/catalog/datasets/gold.flights/lineage?depth=3&direction=both

Lineage in the catalogue is table to table. Edges are recorded by every pipeline build and by model training and scoring, from the steps each pipeline declares, and from each backing dataset to the object table it fills. A traversal goes up, down or both, 3 hops by default and 10 at most. Nodes the caller cannot see are left out, and nodes that read a deprecated input carry its warning. Column-level lineage is described on lineage and is delivered on request

Sync to Unity Catalog

The platform's own catalogue stays the source of truth for owners, certification, tags, access labels and access. The sync copies to a Unity Catalog (open source) server only what other engines need to find and read a table: one catalog per ontology, one schema per lake schema, and one external Delta table per lake table at its storage location, with its columns and properties for its version, owner, certification and tags

governance:
  unityCatalog:
    url: https://uc.markham.example     # or a service setting
    catalog: aircraft                      # default: the ontology folder name
    schemas: [raw, gold, objects, ops]
    includeRestricted: false
  • A table whose columns, location, description, owner, certification or tags change is dropped and registered again. A new Delta version alone needs no change, because engines read the Delta log at the location
  • A table that leaves the lake is dropped from the server, but only if the sync registered it
  • Datasets with an access label or a tag reader restriction are left out unless includeRestricted is true, because the open catalogue holds names and locations only and access to them is applied by the platform
  • Every run is a row in ops.catalog_sync_runs. When the server is not reachable, the run is recorded as skipped and the platform's catalogue keeps working

Administrators run the sync with POST /api/v2/catalog/uc/sync ({"dryRun": true} to preview). Any engine that speaks the Unity Catalog API can then read the tables, for example DuckDB

INSTALL unity_catalog; LOAD unity_catalog; INSTALL delta; LOAD delta;
CREATE SECRET uc (TYPE UC, TOKEN '<catalog token>',
  ENDPOINT 'https://uc.markham.example', AWS_REGION 'us-east-1');
ATTACH 'aircraft' AS uc (TYPE UC_CATALOG, SECRET uc);

SELECT status, count(*) FROM uc.gold.aircraft GROUP BY status;

API

EndpointDoes
GET /api/v2/catalog, /entriesA summary, and the entries the caller can see, filtered by kind, schema, status or tag
GET /api/v2/catalog/search?q=Ranked search
GET /api/v2/catalog/{datasets|object-types|metrics}/{id}One entry
GET …/{id}/lineageTable lineage, with depth and direction
PUT …/{id}/certificationCertify, deprecate or clear, see certified and deprecated data
PUT or DELETE …/{id}/tags/{key}Set or clear a controlled tag
GET /api/v2/catalog/tagsTag keys, values and who may set them
POST /api/v2/catalog/uses:checkRefuses a new use of anything deprecated past its block date
/api/v2/catalog/access/…Access requests and grants
GET /api/v2/catalog/uc/status, POST …/uc/syncUnity Catalog sync status and runs

Limitations

  • The Catalogue screen is in Data, in the app when connected to the platform service. Browser-only workspaces have no service behind them
  • Lineage is table to table; column-level lineage is delivered on request
  • The Unity Catalog server holds names, columns and locations only, so restricted datasets are left out of it by default
  • Columns are not scanned for sensitive values; a dataset is classified by the tags people and lineage give it
  • Metric lineage in the catalogue is delivered on request

Related