Skip to content

Commit f0c95d2

Browse files
committed
Pass audit results directly to evaluation prog bar output
1 parent 8932f67 commit f0c95d2

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
@@ -30,7 +30,6 @@
3030
from sqlmesh.core.environment import EnvironmentNamingInfo
3131
from sqlmesh.core.linter.rule import RuleViolation
3232
from sqlmesh.core.model import Model
33-
from sqlmesh.core.model.definition import AuditResult
3433
from sqlmesh.core.snapshot import (
3534
Snapshot,
3635
SnapshotChangeCategory,
@@ -97,12 +96,6 @@ def start_plan_evaluation(self, plan: EvaluatablePlan) -> None:
9796
def stop_plan_evaluation(self) -> None:
9897
"""Indicates that the evaluation has ended."""
9998

100-
@abc.abstractmethod
101-
def store_evaluation_audit_results(
102-
self, snapshot: Snapshot, audit_results: t.List[AuditResult]
103-
) -> None:
104-
"""Stores the audit results for the snapshot evaluation."""
105-
10699
@abc.abstractmethod
107100
def start_evaluation_progress(
108101
self,
@@ -420,11 +413,6 @@ def start_plan_evaluation(self, plan: EvaluatablePlan) -> None:
420413
def stop_plan_evaluation(self) -> None:
421414
pass
422415

423-
def store_evaluation_audit_results(
424-
self, snapshot: Snapshot, audit_results: t.List[AuditResult]
425-
) -> None:
426-
pass
427-
428416
def start_evaluation_progress(
429417
self,
430418
batch_sizes: t.Dict[Snapshot, int],
@@ -739,11 +727,6 @@ def start_plan_evaluation(self, plan: EvaluatablePlan) -> None:
739727
def stop_plan_evaluation(self) -> None:
740728
pass
741729

742-
def store_evaluation_audit_results(
743-
self, snapshot: Snapshot, audit_results: t.List[AuditResult]
744-
) -> None:
745-
self.evaluation_audit_results[snapshot] = audit_results
746-
747730
def start_evaluation_progress(
748731
self,
749732
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)