Skip to content

Commit

Permalink
added fix from PR transferwise#375
Browse files Browse the repository at this point in the history
  • Loading branch information
josescuderoh committed Jun 2, 2023
1 parent aa6ac2e commit 16a2310
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions target_snowflake/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,10 @@ def get_snowflake_statics(config):
Returns:
tuple of retrieved items: table_cache, file_format_type
"""
table_cache = []
table_cache = None
db = DbSync(config) # pylint: disable=invalid-name
if not ('disable_table_cache' in config and config['disable_table_cache']):
LOGGER.info('Getting catalog objects from table cache...')

db = DbSync(config) # pylint: disable=invalid-name
table_cache = db.get_table_columns(
table_schemas=stream_utils.get_schema_names_from_config(config))

Expand Down

0 comments on commit 16a2310

Please sign in to comment.