build_lineage_records
Public callable
Build compact lineage records for downstream metadata sinks.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
dataset_name
|
str
|
Dataset identifier for all output rows. |
required |
run_id
|
str
|
Unique run identifier. |
required |
source_tables
|
list of str
|
Source table names captured for the run. |
required |
target_table
|
str
|
Target table name produced by the run. |
required |
transformation_steps
|
list of dict
|
Transformation step dictionaries to merge into each output row. |
required |
Returns:
| Type | Description |
|---|---|
list of dict
|
Row dictionaries suitable for metadata persistence. |
Source code in src/fabricops_kit/lineage.py
220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 | |