Skip to content

Commit

Permalink
fixed errors
Browse files Browse the repository at this point in the history
  • Loading branch information
emmyoop committed Dec 2, 2021
1 parent c5138cf commit 2f0fa95
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
3 changes: 2 additions & 1 deletion core/dbt/adapters/sql/connections.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ def add_query(

fire_event(
SQLQueryStatus(
status=self.get_response(cursor)._message, elapsed=round((time.time() - pre), 2)
status=self.get_response(cursor)._message,
elapsed=round((time.time() - pre), 2)
)
)

Expand Down
6 changes: 3 additions & 3 deletions core/dbt/events/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
from dbt.events.stubs import (
_CachedRelation,
BaseRelation,
ParsedModelNode,
ParsedHookNode,
ParsedModelNode,
_ReferenceKey,
RunResult
)
Expand Down Expand Up @@ -1928,7 +1928,7 @@ class PrintHookStartLine(InfoLevel, Cli, File, NodeInfo):
index: int
total: int
truncate: bool
report_node_data: ParsedHookNode
report_node_data: Any # TODO: resolve ParsedHookNode circular import
code: str = "Q032"

def message(self) -> str:
Expand All @@ -1948,7 +1948,7 @@ class PrintHookEndLine(InfoLevel, Cli, File, NodeInfo):
total: int
execution_time: int
truncate: bool
report_node_data: ParsedHookNode
report_node_data: Any # TODO: resolve ParsedHookNode circular import
code: str = "Q007"

def message(self) -> str:
Expand Down
3 changes: 1 addition & 2 deletions core/dbt/task/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -364,8 +364,7 @@ def run_hooks(self, adapter, hook_type: RunHookType, extra_context):

with Timer() as timer:
if len(sql.strip()) > 0:
response, _ = adapter.execute(sql, auto_begin=False,
fetch=False)
response, _ = adapter.execute(sql, auto_begin=False, fetch=False)
status = response._message
else:
status = 'OK'
Expand Down

0 comments on commit 2f0fa95

Please sign in to comment.