Skip to content

Commit

Permalink
pass the model name along in get_relations
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacob Beck committed Apr 4, 2019
1 parent da4c135 commit acc1609
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugins/bigquery/dbt/adapters/bigquery/impl.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,8 @@ def get_relation(self, database, schema, identifier, model_name=None):
)

try:
table = self.connections.get_bq_table(database, schema, identifier)
table = self.connections.get_bq_table(database, schema, identifier,
model_name=model_name)
except google.api_core.exceptions.NotFound:
table = None
return self._bq_table_to_relation(table)
Expand Down

0 comments on commit acc1609

Please sign in to comment.