Skip to content

Commit dd7292c

Browse files
committed
Pass audit results directly to evaluation prog bar output
1 parent b70b77d commit dd7292c

2 files changed

Lines changed: 1 addition & 18 deletions

File tree

sqlmesh/core/console.py

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
from sqlmesh.core.environment import EnvironmentNamingInfo
3030
from sqlmesh.core.linter.rule import RuleViolation
3131
from sqlmesh.core.model import Model
32-
from sqlmesh.core.model.definition import AuditResult
3332
from sqlmesh.core.snapshot import (
3433
Snapshot,
3534
SnapshotChangeCategory,
@@ -94,12 +93,6 @@ def start_plan_evaluation(self, plan: EvaluatablePlan) -> None:
9493
def stop_plan_evaluation(self) -> None:
9594
"""Indicates that the evaluation has ended."""
9695

97-
@abc.abstractmethod
98-
def store_evaluation_audit_results(
99-
self, snapshot: Snapshot, audit_results: t.List[AuditResult]
100-
) -> None:
101-
"""Stores the audit results for the snapshot evaluation."""
102-
10396
@abc.abstractmethod
10497
def start_evaluation_progress(
10598
self,
@@ -357,11 +350,6 @@ def start_plan_evaluation(self, plan: EvaluatablePlan) -> None:
357350
def stop_plan_evaluation(self) -> None:
358351
pass
359352

360-
def store_evaluation_audit_results(
361-
self, snapshot: Snapshot, audit_results: t.List[AuditResult]
362-
) -> None:
363-
pass
364-
365353
def start_evaluation_progress(
366354
self,
367355
batch_sizes: t.Dict[Snapshot, int],
@@ -611,11 +599,6 @@ def start_plan_evaluation(self, plan: EvaluatablePlan) -> None:
611599
def stop_plan_evaluation(self) -> None:
612600
pass
613601

614-
def store_evaluation_audit_results(
615-
self, snapshot: Snapshot, audit_results: t.List[AuditResult]
616-
) -> None:
617-
self.evaluation_audit_results[snapshot] = audit_results
618-
619602
def start_evaluation_progress(
620603
self,
621604
batch_sizes: t.Dict[Snapshot, int],

sqlmesh/core/scheduler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
from sqlmesh.core.console import Console, get_console
88
from sqlmesh.core.environment import EnvironmentNamingInfo, execute_environment_statements
99
from sqlmesh.core.macros import RuntimeStage
10+
from sqlmesh.core.model.definition import AuditResult
1011
from sqlmesh.core.node import IntervalUnit
1112
from sqlmesh.core.notification_target import (
1213
NotificationEvent,
@@ -210,7 +211,6 @@ def evaluate(
210211
wap_id=wap_id,
211212
**kwargs,
212213
)
213-
self.console.store_evaluation_audit_results(snapshot, audit_results)
214214

215215
audit_errors_to_raise: t.List[AuditError] = []
216216
audit_errors_to_warn: t.List[AuditError] = []

0 commit comments

Comments
 (0)