Skip to content

Commit

Permalink
[CT-1284] Change Python model default materialization to table
Browse files Browse the repository at this point in the history
  • Loading branch information
aranke committed Dec 13, 2022
1 parent fafd5ed commit 0570d39
Show file tree
Hide file tree
Showing 3 changed files with 237 additions and 204 deletions.
6 changes: 6 additions & 0 deletions .changes/unreleased/Fixes-20221213-112620.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
kind: Fixes
body: '[CT-1284] Change Python model default materialization to table'
time: 2022-12-13T11:26:20.550017-08:00
custom:
Author: aranke
Issue: "6345"
1 change: 1 addition & 0 deletions core/dbt/parser/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@ def _create_parsetime_node(
name = block.name
if block.path.relative_path.endswith(".py"):
language = ModelLanguage.python
config.add_config_call({"materialized": "table"})
else:
# this is not ideal but we have a lot of tests to adjust if don't do it
language = ModelLanguage.sql
Expand Down
Loading

0 comments on commit 0570d39

Please sign in to comment.