Skip to content

Commit

Permalink
fix query func call
Browse files Browse the repository at this point in the history
  • Loading branch information
pblankley committed Sep 26, 2024
1 parent e1c1878 commit 26e744e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions metrics_layer/cli/seeding.py
Original file line number Diff line number Diff line change
Expand Up @@ -595,9 +595,7 @@ def table_query(self):
return query + ";" if self.connection.type not in Definitions.no_semicolon_warehouses else query

def run_query(self, query: str):
if self.run_query_override and self.connection is not None:
return self.run_query_override(query, connection_name=self.connection.name)
elif self.run_query_override and self.connection is None:
if self.run_query_override:
return self.run_query_override(query)
return self.metrics_layer.run_query(
query, self.connection, run_pre_queries=False, start_warehouse=True
Expand Down

0 comments on commit 26e744e

Please sign in to comment.