Skip to content

Commit

Permalink
Stop monkeying around with database
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacob Beck committed May 27, 2020
1 parent 78f2ae1 commit 5b0a09a
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions dbt/adapters/spark/relation.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,6 @@ class SparkRelation(BaseRelation):
include_policy: SparkIncludePolicy = SparkIncludePolicy()
quote_character: str = '`'

def __post_init__(self):
# some core things set database='', which we should ignore.
if self.database and self.database != self.schema:
raise RuntimeException(
f'Error while parsing relation {self.name}: \n'
f' identifier: {self.identifier} \n'
f' schema: {self.schema} \n'
f' database: {self.database} \n'
f'On Spark, database should not be set. Use the schema '
f'config to set a custom schema/database for this relation.'
)

def render(self):
if self.include_policy.database and self.include_policy.schema:
raise RuntimeException(
Expand Down

0 comments on commit 5b0a09a

Please sign in to comment.