Skip to content

Commit

Permalink
Merge pull request #75 from elementary-data/databricks_config_to_models
Browse files Browse the repository at this point in the history
databricks config fix
  • Loading branch information
oravi authored Aug 14, 2022
2 parents 346ae5e + 9268f28 commit 974a427
Show file tree
Hide file tree
Showing 10 changed files with 18 additions and 18 deletions.
9 changes: 0 additions & 9 deletions dbt_project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,6 @@ clean-targets: # directories to be removed by `dbt clean`
- "dbt_packages"
- "dbt_modules"

models:
elementary:
edr:
data_monitoring:
+enabled: "{{ target.type != 'databricks' | as_bool() }}"
metadata_store:
+enabled: "{{ target.type != 'databricks' | as_bool() }}"
system:
+enabled: "{{ target.type != 'databricks' | as_bool() }}"

on-run-start:
- "{{ elementary.create_elementary_tests_schema() if flags.WHICH in ['test', 'build'] }}"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{{
config(
materialized = 'view',
bind=False
bind =False,
enabled = target.type != 'databricks' | as_bool()
)
}}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{{
config(
materialized = 'view',
bind=False
bind=False,
enabled = target.type != 'databricks' | as_bool()
)
}}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{{
config(
materialized = 'view',
bind=False
bind=False,
enabled = target.type != 'databricks' | as_bool()
)
}}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
config(
materialized='incremental',
unique_key='id',
on_schema_change='append_new_columns'
on_schema_change='append_new_columns',
enabled = target.type != 'databricks' | as_bool()
)
}}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{{
config(
materialized = 'view',
bind=False
bind=False,
enabled = target.type != 'databricks' | as_bool()
)
}}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{{
config(
materialized='incremental',
unique_key = 'column_state_id'
unique_key = 'column_state_id',
enabled = target.type != 'databricks' | as_bool()
)
}}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{{
config(
materialized = 'view'
materialized = 'view',
enabled = target.type != 'databricks' | as_bool()
)
}}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{{
config(
materialized = 'view'
materialized = 'view',
enabled = target.type != 'databricks' | as_bool()
)
}}

Expand Down
3 changes: 2 additions & 1 deletion models/edr/system/monitors_runs.sql
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{{
config(
materialized = 'view',
bind=False
bind=False,
enabled = target.type != 'databricks' | as_bool()
)
}}

Expand Down

0 comments on commit 974a427

Please sign in to comment.