From 16a2310f2d7257ca62c7b20203fff2117673f35d Mon Sep 17 00:00:00 2001 From: josescuderoh Date: Fri, 2 Jun 2023 09:15:24 -0600 Subject: [PATCH] added fix from PR #375 --- target_snowflake/__init__.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/target_snowflake/__init__.py b/target_snowflake/__init__.py index 1abbaebe..4d637ddf 100644 --- a/target_snowflake/__init__.py +++ b/target_snowflake/__init__.py @@ -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))