Skip to content
This repository has been archived by the owner on Sep 23, 2024. It is now read-only.

Don't set data retention time when creating a table #432

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
2 changes: 1 addition & 1 deletion target_snowflake/db_sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,7 @@ def create_table_query(self, is_temporary=False):
p_temp = 'TEMP ' if is_temporary else ''
p_table_name = self.table_name(stream_schema_message['stream'], is_temporary)
p_columns = ', '.join(columns + primary_key)
p_extra = 'data_retention_time_in_days = 0 ' if is_temporary else 'data_retention_time_in_days = 1 '
p_extra = 'data_retention_time_in_days = 0 ' if is_temporary else ''
return f'CREATE {p_temp}TABLE IF NOT EXISTS {p_table_name} ({p_columns}) {p_extra}'

def grant_usage_on_schema(self, schema_name, grantee):
Expand Down