Saul Burgos
02/24/2023, 8:24 PMManish Khatri
02/27/2023, 3:24 PMload_assets_…
function map correctly to wire up things as we expectSaul Burgos
02/27/2023, 3:40 PMSaul Burgos
02/27/2023, 3:41 PM{
'resource_type': 'model',
'depends_on': {
'macros': ['macro.dbt.is_incremental'],
'nodes': ['source.netflix.airbnb.listings']},
'config': {
'enabled': True,
'alias': None,
'schema': None,
'database': None,
'tags': [],
'meta': {},
'materialized': 'incremental',
'incremental_strategy': None,
'persist_docs': {},
'quoting': {},
'column_types': {},
'full_refresh': None,
'unique_key': None,
'on_schema_change': 'fail',
'grants': {},
'packages': [],
'docs': {
'show': True,
'node_color': None},
'netflix': None,
'post-hook': [],
'pre-hook': []
},
'database': 'Temporal',
'schema': 'PRACTICES',
'fqn': ['netflix', 'src', 'src_listings'],
'unique_id': 'model.netflix.src_listings',
'raw_code': "WITH raw_listing",
'language': 'sql',
'package_name': 'netflix',
'root_path': '/opt/dagster/app/dbt/netflix/seek_connect',
'path': 'src/src_listings.sql',
'original_file_path': 'models/src/src_listings.sql',
'name': 'src_listings',
'alias': 'src_listings',
'checksum': {'name': 'sha256', 'checksum': '370f8f95def342266932d323f6a2be1df6c62c47607d66aa7422e9a206a0b5f1'},
'tags': [],
'refs': [],
'sources': [['airbnb', 'listings']],
'metrics': [],
'description': 'Internal staging model from source directly',
'columns': {},
'meta': {},
'docs': {
'show': True,
'node_color': None},
'patch_path': '<netflix://models/src/src_listings.yml>',
'compiled_path': None,
'build_path': None,
'deferred': False,
'unrendered_config': {
'netflix': None,
'materialized': 'incremental',
'on_schema_change': 'fail'
},
'created_at': 1677254905.8756075
}
Saul Burgos
02/27/2023, 3:41 PMSaul Burgos
02/27/2023, 3:47 PMManish Khatri
02/27/2023, 5:09 PMreviews
and take a look at the AssetKey assigned to it on the right hand window pane that will show up. It will be the very 1st line of text. Just below it will be “View in Asset Catalog” link.
I believe the 2 asset keys are different, that is why they appear as 2 different entitiesManish Khatri
02/27/2023, 5:11 PMsrc_reviews
access it via the same source arguments, e.g. {{ source("something", "reviews") }}
you should find that the DAG will only show 1 reviews box with an arrow going to each of the dbt modelsSaul Burgos
02/27/2023, 5:17 PMManish Khatri
03/01/2023, 4:19 PM