sqlalchemy-teradata icon indicating copy to clipboard operation
sqlalchemy-teradata copied to clipboard

SQLAlchemy 2 Error

Open zach-morris opened this issue 2 years ago • 3 comments

Using:

teradatasqlalchemy==17.0.0.4
SQLAlchemy==2.0.0

A simple connection now fails:

with my_teradata_engine.connect() as conn:
    print('test')

Error is:

ArgumentError: Additional keyword arguments are not accepted by this function/method.  The presence of **kw is for pep-484 typing purposes

zach-morris avatar Feb 08 '23 17:02 zach-morris

Hi zach-morris. Teradata is currently testing a new version of teradataml and teradatasqlalchemy that is compatible with sqlalchemy 2.0. This is targeted for release in late April 2023. Meanwhile, please stay on sqlalchemy 1.4.

uyjeff18 avatar Mar 08 '23 06:03 uyjeff18

Hi @uyjeff18 what's the status on this issue? Furthermore, does it make sense to restrict the sqlalchemy version to sqlalchemy<2.0.0,>=1.4.0?

fvivian avatar Jul 25 '23 09:07 fvivian

Hi fvivian, zach-morris, good news is that we just released teradataml 17.20.00.04 last Friday. (a companion version of teradatasqlalchemy was also released) This version supports sqlalchemy 2.x. Please be aware though that there are code breaking changes (see release notes) due to sqlalchemy change. We're still working on documentation changes to include info on new functions/features. It will be out to https://docs.teradata.com/ soon. In the meantime, pls check the inline help for info.

uyjeff18 avatar Jul 25 '23 17:07 uyjeff18