Skip to content

Commit

Permalink
Removing the is_iceberg check it is not needed
Browse files Browse the repository at this point in the history
Upon further investigation this check is not needed since
self.database will not be set.
  • Loading branch information
dparent1 committed Sep 27, 2022
1 parent bbf79e4 commit 50f7b94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dbt/adapters/spark/relation.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class SparkRelation(BaseRelation):
meta: Optional[Dict[str, Any]] = None

def __post_init__(self):
if self.is_iceberg is not True and self.database != self.schema and self.database:
if self.database != self.schema and self.database:
raise RuntimeException("Cannot set database in spark!")

@classmethod
Expand Down

0 comments on commit 50f7b94

Please sign in to comment.