Skip to content

Commit 580e619

Browse files
committed
Pass audit results directly to evaluation prog bar output
1 parent 04638fd commit 580e619

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
@@ -31,7 +31,6 @@
3131
from sqlmesh.core.environment import EnvironmentNamingInfo
3232
from sqlmesh.core.linter.rule import RuleViolation
3333
from sqlmesh.core.model import Model
34-
from sqlmesh.core.model.definition import AuditResult
3534
from sqlmesh.core.snapshot import (
3635
Snapshot,
3736
SnapshotChangeCategory,
@@ -191,12 +190,6 @@ def start_plan_evaluation(self, plan: EvaluatablePlan) -> None:
191190
def stop_plan_evaluation(self) -> None:
192191
"""Indicates that the evaluation has ended."""
193192

194-
@abc.abstractmethod
195-
def store_evaluation_audit_results(
196-
self, snapshot: Snapshot, audit_results: t.List[AuditResult]
197-
) -> None:
198-
"""Stores the audit results for the snapshot evaluation."""
199-
200193
@abc.abstractmethod
201194
def start_evaluation_progress(
202195
self,
@@ -425,11 +418,6 @@ def start_plan_evaluation(self, plan: EvaluatablePlan) -> None:
425418
def stop_plan_evaluation(self) -> None:
426419
pass
427420

428-
def store_evaluation_audit_results(
429-
self, snapshot: Snapshot, audit_results: t.List[AuditResult]
430-
) -> None:
431-
pass
432-
433421
def start_evaluation_progress(
434422
self,
435423
batch_sizes: t.Dict[Snapshot, int],
@@ -744,11 +732,6 @@ def start_plan_evaluation(self, plan: EvaluatablePlan) -> None:
744732
def stop_plan_evaluation(self) -> None:
745733
pass
746734

747-
def store_evaluation_audit_results(
748-
self, snapshot: Snapshot, audit_results: t.List[AuditResult]
749-
) -> None:
750-
self.evaluation_audit_results[snapshot] = audit_results
751-
752735
def start_evaluation_progress(
753736
self,
754737
batch_sizes: t.Dict[Snapshot, int],

sqlmesh/core/scheduler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
from sqlmesh.core.console import Console, get_console
77
from sqlmesh.core.environment import EnvironmentNamingInfo, execute_environment_statements
88
from sqlmesh.core.macros import RuntimeStage
9+
from sqlmesh.core.model.definition import AuditResult
910
from sqlmesh.core.node import IntervalUnit
1011
from sqlmesh.core.notification_target import (
1112
NotificationEvent,
@@ -193,7 +194,6 @@ def evaluate(
193194
wap_id=wap_id,
194195
**kwargs,
195196
)
196-
self.console.store_evaluation_audit_results(snapshot, audit_results)
197197

198198
audit_errors_to_raise: t.List[AuditError] = []
199199
audit_errors_to_warn: t.List[AuditError] = []

0 commit comments

Comments
 (0)