Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Temporarily remove requirement that there must be semantic models def…
…inied in order to define metrics
  • Loading branch information
peterallenwebb committed Jul 10, 2023
commit 1b09d68084ce126acafa35bb68a772afb1ef04ba
17 changes: 9 additions & 8 deletions core/dbt/contracts/graph/semantic_manifest.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,15 @@ def __init__(self, manifest):

def validate(self) -> bool:

if self.manifest.metrics and not self.manifest.semantic_models:
fire_event(
SemanticValidationFailure(
msg="Metrics require semantic models, but none were found."
),
EventLevel.ERROR,
)
return False
# TODO: Enforce this check.
# if self.manifest.metrics and not self.manifest.semantic_models:
# fire_event(
# SemanticValidationFailure(
# msg="Metrics require semantic models, but none were found."
# ),
# EventLevel.ERROR,
# )
# return False

if not self.manifest.metrics or not self.manifest.semantic_models:
return True
Expand Down