laughingman7743 / PyAthena

PyAthena is a Python DB API 2.0 (PEP 249) client for Amazon Athena.
MIT License
464 stars 105 forks source link

SQLAlchemy dialect uses deprecated dbapi() method #496

Closed 0Itsuki0 closed 11 months ago

0Itsuki0 commented 11 months ago

Getting the following warning while using create_engine(). It appears that this library is using a deprecated method from SQLAlchemy:

SADeprecationWarning: The dbapi() classmethod on dialect classes has been renamed to import_dbapi(). Implement an import_dbapi() classmethod directly on class <class 'pyathena.sqlalchemy.rest.AthenaRestDialect'> to remove this warning; the old .dbapi() classmethod may be maintained for backwards compatibility.

laughingman7743 commented 11 months ago

Please check the following issues and PRs.

Required for compatibility with SQLAlchemy 1.4 series.