Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for SnowflakeQuery task #1663

Merged
merged 13 commits into from
Oct 27, 2019
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ These changes are available in the [master branch](https://github.com/PrefectHQ/
- Fix ShellTask return value on empty stdout - [#1632](https://github.com/PrefectHQ/prefect/pull/1632)
- Fix issue with some Cloud Secrets not being converted from strings - [#1655](https://github.com/PrefectHQ/prefect/pull/1655)
- Fix issue with Agent logging config setting not working - [#1657](https://github.com/PrefectHQ/prefect/pull/1657)
- Fix issue with SnowflakeQuery tasks not working - [#1663](https://github.com/PrefectHQ/prefect/pull/1663)

### Deprecations

Expand Down
2 changes: 1 addition & 1 deletion src/prefect/tasks/snowflake/snowflake.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def run(self, query: str = None, data: tuple = None, autocommit: bool = None):
try:
with conn:
with conn.cursor() as cursor:
executed = cursor.execute(query=query, params=data)
executed = cursor.execute(query, params=data)

conn.close()
return executed
Expand Down