Rinze
07/27/2021, 12:23 PMTraceback (most recent call last):
File "C:\Users\***\code\pipeline\src\flows_combined_entries.py", line 76, in <module>
sqlserver.run(query='select * from julitest.entries where id = 50299',
File "C:\Users\***\code\pipeline\venv\lib\site-packages\prefect\utilities\tasks.py", line 441, in method
return run_method(self, *args, **kwargs)
File "C:\Users\***\code\pipeline\venv\lib\site-packages\prefect\tasks\sql_server\sql_server.py", line 90, in run
executed = cursor.execute(query=query, vars=data)
TypeError: execute() takes no keyword arguments
Rinze
07/27/2021, 12:48 PMDELETE FROM entries WHERE id IN (?)
.
I found this open issue (https://github.com/PrefectHQ/prefect/issues/4342), but I'm also running into problems with SQLServerExecuteMany
and SQLServerFetch
. With the first I get errors that I need to provide a list or tuple of data (which I've tried), with the latter there is no record to fetch so I also get an exception. How would I circumvent this?Sam Cook
07/27/2021, 1:16 PMKevin Kho
Rinze
07/27/2021, 2:26 PM