Skip to content

Commit

Permalink
better error message + test
Browse files Browse the repository at this point in the history
  • Loading branch information
MichelleArk committed Oct 29, 2024
1 parent 907d923 commit 7601b3d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion core/dbt/events/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -931,7 +931,7 @@ def code(self) -> str:
def message(self) -> str:
msg = (
f"The microbatch model '{self.model_name}' has no 'ref' or 'source' input with an 'event_time' configuration. "
"This can result in unexpected duplicate records in the resulting microbatch model."
"\nThis means no filtering can be applied and can result in unexpected duplicate records in the resulting microbatch model."
)

return warning_tag(msg)
Expand Down
1 change: 1 addition & 0 deletions tests/unit/test_events.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,7 @@ def test_event_codes(self):
core_types.WarnStateTargetEqual(state_path=""),
core_types.FreshnessConfigProblem(msg=""),
core_types.SemanticValidationFailure(msg=""),
core_types.MicrobatchModelNoEventTimeInputs(model_name=""),
# M - Deps generation ======================
core_types.GitSparseCheckoutSubdirectory(subdir=""),
core_types.GitProgressCheckoutRevision(revision=""),
Expand Down

0 comments on commit 7601b3d

Please sign in to comment.