Skip to content

Commit

Permalink
Support for v1/v2 config blocks
Browse files Browse the repository at this point in the history
- Backwards compatiblity shims from v2 to v1 configs
- config merging for v2
- compatibility shim for parsing/contexts
- defer var lookups as late as possible
- fixed ContextConfigType to be a proper Union of the two context config types
- Fix adapter configs to be proper dataclasses
- fix unused config paths error
- make v2 config parsing not alter its source data


automatic commit by git-black, original commits:
  c7d8031
  fac8a28
  • Loading branch information
Jacob Beck authored and iknox-fa committed Feb 8, 2022
1 parent a7358d3 commit 8660435
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions core/dbt/parser/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -314,9 +314,7 @@ def update_parsed_node_config(
get_rendered(hook.sql, context, parsed_node, capture_macros=True)

def initial_config(self, fqn: List[str]) -> ContextConfig:
config_version = min(
[self.project.config_version, self.root_project.config_version]
)
config_version = min([self.project.config_version, self.root_project.config_version])
if config_version == 2:
return ContextConfig(
self.root_project,
Expand Down

0 comments on commit 8660435

Please sign in to comment.