Skip to content
Prev Previous commit
Next Next commit
revert show.py
  • Loading branch information
aranke committed May 11, 2023
commit 51a99e02b253d16a3badd89f2e7c3381acee09f4
9 changes: 7 additions & 2 deletions core/dbt/task/show.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@
import threading
import time

from dbt.contracts.graph.nodes import SeedNode
from dbt.contracts.results import RunResult, RunStatus
from dbt.events.base_types import EventLevel
from dbt.events.functions import fire_event
from dbt.events.types import ShowNode, Note
from dbt.exceptions import DbtRuntimeError
from dbt.task.compile import CompileTask, CompileRunner
from dbt.task.seed import SeedRunner


class ShowRunner(CompileRunner):
Expand Down Expand Up @@ -41,8 +43,11 @@ def _runtime_initialize(self):
raise DbtRuntimeError("Either --select or --inline must be passed to show")
super()._runtime_initialize()

def get_runner_type(self, _):
return ShowRunner
def get_runner_type(self, node):
if isinstance(node, SeedNode):
return SeedRunner
else:
return ShowRunner

def task_end_messages(self, results):
is_inline = bool(getattr(self.args, "inline", None))
Expand Down