Skip to content

Commit

Permalink
Merge pull request #1 from jschintz-nytimes/add_config_for_materializ…
Browse files Browse the repository at this point in the history
…ation

Add config for materialization
  • Loading branch information
jschintz-nytimes authored May 10, 2024
2 parents fcb464c + c3bbbc2 commit 1555b49
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions macros/unpack/get_node_values.sql
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@
"cast(" ~ node.config.enabled | trim ~ " as boolean)",
wrap_string_with_quotes(node.config.materialized),
wrap_string_with_quotes(node.config.on_schema_change),
wrap_string_with_quotes(node.config.incremental_strategy),
wrap_string_with_quotes(node.config.partition_by),
wrap_string_with_quotes(node.config.persist_docs),
wrap_string_with_quotes(node.config.full_refresh),
wrap_string_with_quotes(node.group),
wrap_string_with_quotes(node.access),
wrap_string_with_quotes(node.latest_version),
Expand Down
6 changes: 5 additions & 1 deletion models/staging/graph/stg_nodes.sql
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ select
cast(True as boolean) as is_enabled,
cast(null as {{ dbt.type_string() }}) as materialized,
cast(null as {{ dbt.type_string() }}) as on_schema_change,
cast(null as {{ dbt.type_string() }}) as incremental_strategy,
cast(null as {{ dbt.type_string() }}) as partition_by,
cast(null as {{ dbt.type_string() }}) as persist_docs,
cast(null as {{ dbt.type_string() }}) as full_refresh,
cast(null as {{ dbt.type_string() }}) as model_group,
cast(null as {{ dbt.type_string() }}) as access,
cast(null as {{ dbt.type_string() }}) as latest_version,
Expand All @@ -46,4 +50,4 @@ select
cast(True as boolean) as is_excluded

from dummy_cte
where false
where false

0 comments on commit 1555b49

Please sign in to comment.