This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
with | |
source as ( | |
select distinct | |
oct.org_id as org_id, | |
ct.content_type_name as content_type_name | |
from fxdmz.dev_brian_orgs.org_content_types oct | |
join fxdmz.dev_brian_base.content_types ct | |
on oct.content_type_id = ct.content_type_id |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{%- set get_distinct_types -%} | |
select distinct(ct.content_type_name) | |
from {{ ref('org_content_types') }} oct | |
join {{ ref('content_types') }} ct | |
on oct.content_type_id = ct.content_type_id | |
{%- endset -%} | |
{%- set results = run_query(get_distinct_types) -%} | |
{%- if execute -%} |