martin o leary
05/18/2023, 1:30 PMruntime_metadata_fn
?
I definitely did have access to it (back a few months ago maybe) and added to the asset metdata before but it's not showing in the node_info
dictionary:
{
'database': 'db',
'schema': 'schema',
'name': 'name',
'resource_type': 'model',
'package_name': 'core',
'path': 'cpath',
'original_file_path': '',
'unique_id': '.',
'fqn': [],
'alias': '',
'checksum': {
'name': 'sha256',
'checksum': ''
},
'config': {
'enabled': True,
'alias': None,
'schema': None,
'database': None,
'tags': [],
'meta': {},
'materialized': 'table',
'incremental_strategy': None,
'persist_docs': {},
'quoting': {},
'column_types': {},
'full_refresh': None,
'unique_key': None,
'on_schema_change': 'ignore',
'grants': {},
'packages': [],
'docs': {
'show': True,
'node_color': None
},
'post-hook': [],
'pre-hook': []
},
'tags': [],
'description': '',
'columns': {},
'meta': {},
'docs': {
'show': True,
'node_color': None
},
'patch_path': None,
'build_path': None,
'deferred': False,
'unrendered_config': {
'materialized': 'table'
},
'created_at': time,
'relation_name': '',
'raw_code': 'raw uncompiled code,
'language': 'sql',
'refs': [],
'sources': [],
'metrics': [],
'depends_on': {
'macros': [], 'nodes': []
},
'compiled_path': None
}
rex
05/18/2023, 2:41 PMmartin o leary
05/18/2023, 3:00 PMraw_code
contains un-compiled code.
I want to show the compiled code so that my users who are in around dagit can easily copy + paste the SQL into a query editor and reproduce the same results.
This was definitely possible before but I'm not entirely sure how I did it!rex
05/18/2023, 3:06 PMdbt compile
dbt parse
(which also produces a manifest) and it doesn’t show up. so use dbt compile
(which makes sense, as the name suggests!)martin o leary
05/18/2023, 3:11 PMrex
05/18/2023, 3:11 PMdbt compile
can potentially take a long time)martin o leary
05/18/2023, 3:21 PM