Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions target_snowflake/sinks.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@ def setup(self) -> None:
self.connector.prepare_schema(
self.conform_name(self.schema_name, object_type="schema"),
)

self.connector.table_cache.pop(self.full_table_name, None)

try:
self.connector.prepare_table(
full_table_name=self.full_table_name,
Expand All @@ -90,6 +93,8 @@ def setup(self) -> None:
self.logger.exception("Error creating %s %s", self.full_table_name, self.conform_schema(self.schema))
raise

self.connector.table_cache.pop(self.full_table_name, None)

def conform_name(
self,
name: str,
Expand Down
Loading