From 99d033ffec16882e2f5de0f1002ccf44fa3fb451 Mon Sep 17 00:00:00 2001 From: Michelle Ark Date: Fri, 12 Apr 2024 13:01:16 -0700 Subject: [PATCH] Disambiguate FreshnessConfigProblem error message (#9891) --- .changes/unreleased/Fixes-20240412-095718.yaml | 6 ++++++ core/dbt/parser/sources.py | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 .changes/unreleased/Fixes-20240412-095718.yaml diff --git a/.changes/unreleased/Fixes-20240412-095718.yaml b/.changes/unreleased/Fixes-20240412-095718.yaml new file mode 100644 index 00000000000..98fb9333f8d --- /dev/null +++ b/.changes/unreleased/Fixes-20240412-095718.yaml @@ -0,0 +1,6 @@ +kind: Fixes +body: Disambiguiate FreshnessConfigProblem error message +time: 2024-04-12T09:57:18.417882-07:00 +custom: + Author: michelleark + Issue: "9891" diff --git a/core/dbt/parser/sources.py b/core/dbt/parser/sources.py index 9d70bdc430d..1f57efe79ce 100644 --- a/core/dbt/parser/sources.py +++ b/core/dbt/parser/sources.py @@ -202,7 +202,7 @@ def parse_source(self, target: UnpatchedSourceDefinition) -> SourceDefinition: # runtime. fire_event( FreshnessConfigProblem( - msg=f"The configured adapter does not support metadata-based freshness. A loaded_at_field must be specified for source '{source.name}'." + msg=f"The configured adapter does not support metadata-based freshness. A loaded_at_field must be specified for source '{source.name}.{table.name}'." ) )