diff --git a/core/dbt/compilation.py b/core/dbt/compilation.py index 207d973acf6..388713842ed 100644 --- a/core/dbt/compilation.py +++ b/core/dbt/compilation.py @@ -52,7 +52,9 @@ def print_compile_stats(stats: Dict[NodeType, int]): dbt.tracking.track_resource_counts(resource_counts) # do not include resource types that are not actually defined in the project - stat_line = ", ".join([pluralize(ct, t) for t, ct in stats.items() if ct != 0]) + stat_line = ", ".join( + [pluralize(ct, t).replace("_", " ") for t, ct in stats.items() if ct != 0] + ) fire_event(FoundStats(stat_line=stat_line)) @@ -77,6 +79,7 @@ def _generate_stats(manifest: Manifest) -> Dict[NodeType, int]: stats[NodeType.Macro] += len(manifest.macros) stats[NodeType.Group] += len(manifest.groups) stats[NodeType.SemanticModel] += len(manifest.semantic_models) + stats[NodeType.SavedQuery] += len(manifest.saved_queries) stats[NodeType.Unit] += len(manifest.unit_tests) # TODO: should we be counting dimensions + entities? diff --git a/core/dbt/task/build.py b/core/dbt/task/build.py index ef7365e0dda..d2a0f668302 100644 --- a/core/dbt/task/build.py +++ b/core/dbt/task/build.py @@ -21,7 +21,7 @@ class SavedQueryRunner(BaseRunner): # Stub. No-op Runner for Saved Queries, which require MetricFlow for execution. @property def description(self): - return self.node.unique_id + return f"saved query {self.node.name}" def before_execute(self): pass diff --git a/core/dbt/task/printer.py b/core/dbt/task/printer.py index dc8f4c483d1..8d6db2e35ba 100644 --- a/core/dbt/task/printer.py +++ b/core/dbt/task/printer.py @@ -33,11 +33,11 @@ def get_counts(flat_nodes) -> str: if node.resource_type == NodeType.Model: t = "{} {}".format(node.get_materialization(), t) elif node.resource_type == NodeType.Operation: - t = "hook" + t = "project hook" counts[t] = counts.get(t, 0) + 1 - stat_line = ", ".join([pluralize(v, k) for k, v in counts.items()]) + stat_line = ", ".join([pluralize(v, k).replace("_", " ") for k, v in counts.items()]) return stat_line