pub struct DbtAssetProvenance {
pub unique_id: String,
pub resource_type: ResourceType,
pub materialized: Option<String>,
pub materialize_strategy: Option<String>,
pub tags: Option<Vec<String>>,
pub description: Option<String>,
pub data_tests: Option<Vec<DbtAssetProvenanceDataTestsInner>>,
pub columns: Option<HashMap<String, Value>>,
pub freshness: Option<HashMap<String, Value>>,
pub raw_code: Option<String>,
pub original_file_path: Option<String>,
}Expand description
DbtAssetProvenance : What dbt says about the model, snapshot, seed or source that produces (or, for a source, is read at) this relation. A dbt project is one runnable node with many model assets, so per-model metadata belongs here rather than on the script.
Fields§
§unique_id: Stringdbt’s own node id, e.g. model.jaffle_shop.customers.
resource_type: ResourceType§materialized: Option<String>dbt’s own word (table, view, incremental, snapshot).
materialize_strategy: Option<String>The Windmill write strategy it maps to, absent for view and ephemeral, which have none.
description: Option<String>§data_tests: Option<Vec<DbtAssetProvenanceDataTestsInner>>§columns: Option<HashMap<String, Value>>Declared column metadata (name -> description). NOT column lineage — manifest.json carries none.
freshness: Option<HashMap<String, Value>>A source’s declared freshness policy, for the staleness chip.
raw_code: Option<String>The model’s SQL as written, at the deploy this graph belongs to. Omitted when the caller cannot read the script.
original_file_path: Option<String>Its path inside the dbt project, e.g. models/staging/stg_orders.sql.
Implementations§
Source§impl DbtAssetProvenance
impl DbtAssetProvenance
Sourcepub fn new(unique_id: String, resource_type: ResourceType) -> DbtAssetProvenance
pub fn new(unique_id: String, resource_type: ResourceType) -> DbtAssetProvenance
What dbt says about the model, snapshot, seed or source that produces (or, for a source, is read at) this relation. A dbt project is one runnable node with many model assets, so per-model metadata belongs here rather than on the script.
Trait Implementations§
Source§impl Clone for DbtAssetProvenance
impl Clone for DbtAssetProvenance
Source§fn clone(&self) -> DbtAssetProvenance
fn clone(&self) -> DbtAssetProvenance
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more