Skip to content

Commit

Permalink
revert clever commit
Browse files Browse the repository at this point in the history
  • Loading branch information
aranke committed Sep 26, 2023
1 parent 58aee26 commit eb253b4
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion core/dbt/parser/schema_renderer.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,20 @@ def _is_norender_key(self, keypath: Keypath) -> bool:
Return True if it's tests or description - those aren't rendered now
because they're rendered later in parse_generic_tests or process_docs.
"""
return keypath[-1] in ("tests", "description")
if len(keypath) >= 1 and keypath[0] in ("tests", "description"):
return True

if len(keypath) == 2 and keypath[1] in ("tests", "description"):
return True

if (
len(keypath) >= 3
and keypath[0] in ("columns", "dimensions", "measures", "entities")
and keypath[2] in ("tests", "description")
):
return True

return False

# don't render descriptions or test keyword arguments
def should_render_keypath(self, keypath: Keypath) -> bool:
Expand Down

0 comments on commit eb253b4

Please sign in to comment.