QuestionQ32VerifiedCopy linkReport a problemAsk AstroTutorSave questionWhich two code snippets cause a lineage line to appear in the DAG? Choose 2 options.Choose twoA{{ source('source', 'table') }}B{{ ref('stg_jaffle_shop__customers') }}Cdbt_jsmith.stg_jaffle_shop__customersD{{ target.schema }}E{{ source('jaffle_shop.customers') }}Show AnswerAnswerExplanationThe source() and ref() functions create dependencies between a model and its referenced source or model, producing lineage in the DAG. The referenced resources must exist in the project. A hard-coded relation or target.schema does not register a dependency, and source() requires separate source-name and table-name arguments. (docs.getdbt.com)Learn moreAbout source functionAbout ref functionShow comments0Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion