You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SQL hooks before_run_sql and after_run_sql fail to execute with the following error message:
Traceback (most recent call last):
File "/project/.meltano/loaders/target-snowflake/venv/bin/target-snowflake", line 8, in <module>
sys.exit(cli())
File "/project/.meltano/loaders/target-snowflake/venv/lib/python3.8/site-packages/target_snowflake/__init__.py", line 57, in cli
main(args.config)
File "/project/.meltano/loaders/target-snowflake/venv/lib/python3.8/site-packages/target_snowflake/__init__.py", line 51, in main
target_tools.main(target)
File "/project/.meltano/loaders/target-snowflake/venv/lib/python3.8/site-packages/target_postgres/target_tools.py", line 28, in main
stream_to_target(input_stream, target, config=config)
File "/project/.meltano/loaders/target-snowflake/venv/lib/python3.8/site-packages/target_postgres/target_tools.py", line 44, in stream_to_target
_run_sql_hook('before_run_sql', config, target)
File "/project/.meltano/loaders/target-snowflake/venv/lib/python3.8/site-packages/target_postgres/target_tools.py", line 188, in _run_sql_hook
with target.conn.cursor() as cur:
AttributeError: 'SnowflakeTarget' object has no attribute 'conn'
Seems to be caused by this target using a different attribute name for the SQLAlchemy connection (self.connection instead of self.conn).
The text was updated successfully, but these errors were encountered:
SQL hooks
before_run_sql
andafter_run_sql
fail to execute with the following error message:Seems to be caused by this target using a different attribute name for the SQLAlchemy connection (
self.connection
instead ofself.conn
).The text was updated successfully, but these errors were encountered: