Skip to content

Commit

Permalink
Don't set data retention time when creating a table
Browse files Browse the repository at this point in the history
Workaround for transferwise#331
  • Loading branch information
deanmorin committed Nov 23, 2022
1 parent aa6ac2e commit a4fc865
Showing 1 changed file with 1 addition and 1 deletion.
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

0 comments on commit a4fc865

Please sign in to comment.