Skip to content

Commit

Permalink
fix branching
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathaniel May committed Oct 19, 2021
1 parent fcfbb45 commit 2671756
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion core/dbt/parser/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,11 +150,16 @@ def render_update(

self.manifest._parsing_info.static_analysis_parsed_path_count += 1
# if the static parser failed, add the correct messages for tracking
if isinstance(statically_parsed, str):
elif isinstance(statically_parsed, str):
if statically_parsed == "cannot_parse":
result += ["01_stable_parser_cannot_parse"]
elif statically_parsed == "has_banned_macro":
result += ["08_has_banned_macro"]

super().render_update(node, config)
logger.debug(
f"1602: parser fallback to jinja rendering on {node.path}"
)
# if the static parser didn't succeed, fall back to jinja
else:
# jinja rendering
Expand Down

0 comments on commit 2671756

Please sign in to comment.