Metadata pipelines
Conceptual overview of how Nilus metadata pipelines work: shallow vs. deep extraction modes, the stages each runs (inventory, lineage, profiling, classification, usage), and when to use each.
Moving data is only one part of making a platform usable. Teams also need to know what sources exist, which databases and schemas they contain, how columns are described, where lineage comes from, and whether query activity shows that an asset is actually being used.
Metadata pipelines answer that need for supported source systems. Instead of copying table rows into a destination, a metadata pipeline introspects a source and publishes catalog context into the DataOS metadata catalog.
For the field-by-field authoring contract, see Metadata pipeline config, the single reference for source.options and YAML shape.
Pipeline modes and stages
Nilus models catalog extraction as type: nilus with spec.type: metadata. You author one Nilus resource per source system, and Nilus expands that resource into a workflow that runs one or more metadata extraction stages behind the scenes.
A required mode field groups those stages so you can trigger lighter and heavier work on different cadences:
shallowruns source inventory (metadata) and lineage. It keeps the catalog structure and lineage current with a small footprint, so it can run frequently.deepruns everythingshallowdoes and adds column profiling, classification, and usage analytics. It is the full enrichment and is usually scheduled less often.
For Snowflake and Databricks, shallow renders metadata + lineage, and deep adds profiler, classification, and usage. For DataOS Lakehouse, the rendered workflow runs only the metadata stage in either mode, because Lakehouse metadata support is catalog-inventory only today.
A metadata pipeline turns source context into catalog entities: the source connection becomes a browsable source entry; databases, schemas, and namespaces become the hierarchy; tables and views become datasets; columns and descriptions become dataset detail; and owners, tags, profiles, lineage, usage, and classifications attach as enrichment where the source exposes them. The first successful run usually establishes the source inventory; later runs deepen it with the enrichment signals the source supports. A common pattern is a frequent shallow pipeline paired with a less frequent deep pipeline over the same source.
For the field-by-field authoring contract, see Metadata pipeline config, the single reference for source.options and YAML shape.
For ready-to-use source examples, see Metadata sample configs.
Core capabilities
Metadata extraction is organized into the following stages:
Source Inventory
The metadata stage is the foundation. It discovers the source service, database/catalog hierarchy, schemas or namespaces, tables, views, columns, and source-provided descriptions where available.
Every other stage depends on this foundation. If the source inventory is wrong or too broad, profile, lineage, usage, and classification results become harder to validate.
Lineage
Lineage explains which assets feed which, down to the column level, by parsing view definitions and query history. It runs in both shallow and deep, so even a lightweight pipeline keeps lineage current alongside the source inventory.
Profiling and Classification
Profiling adds statistics such as row counts, null counts, distinct counts, min/max values, and basic distributions. Classification samples supported columns and applies generated sensitive-data tags when the classification path is available. Both run only in deep.
These stages are enrichment layers. They are useful after the source hierarchy is correct, but they should not be treated as a substitute for validating source scope and permissions.
Usage
Usage is query-log driven for warehouse-style sources. It uses source query history to explain which assets are actively queried. Usage runs only in deep, and it can take longer than inventory because Nilus reads and processes query activity across a lookback window. The catalog can show source inventory and lineage before usage finishes.
Lakehouse Metadata
DataOS Lakehouse metadata pipelines publish catalog inventory only. They can surface Lakehouse-backed datasets and column context, but they do not publish profiler, classification, lineage, or usage through this metadata path.
Flow
Nilus resolves the source connection from a DataOS depot or a direct connector URI such as
snowflake://...ordatabricks://.... Becausespec.typeismetadata, Nilus adds the internalmetadata+routing prefix automatically.The metadata workflow runs the source inventory stage first.
For supported warehouse sources, the stages selected by
moderun after inventory has succeeded, lineage inshallow, plus profiler, classification, and usage indeep.Nilus publishes the resulting source, dataset, column, profile, lineage, usage, and classification context into the DataOS metadata catalog.
Constraints
mode(shallowordeep) is required on every metadata pipeline. It controls which stages run, not whether the pipeline is valid.Metadata pipelines need source credentials with metadata-read permissions, not just data-read permissions.
Warehouse sources that publish lineage or usage also need access to query-history surfaces.
Production deployments should use
schema_filterandtable_filterto keep the extraction scope bounded.database_filterdoes not override a database already bound on the connection. See Howdatabase_filteris evaluated.Keep the source connection stable. Changing depot names or source identity can create a new source entry instead of updating the existing one.
Use the supported
source.optionson the config page. Do not setsource_tableon the user-authored metadata resource; Nilus assigns stage-specific values internally.
Related Docs
Last updated
Was this helpful?