laughingman7743 / PyAthena

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

Updated dbapi #538

Closed taradepan closed 2 months ago

taradepan commented 2 months ago

image I fixed this warning.

laughingman7743 commented 2 months ago

The import_dbapi method is already defined in the parent class. The warnings are displayed by defining the following method to maintain compatibility with SQLAlchemy 1.4. https://github.com/laughingman7743/PyAthena/blob/master/pyathena/sqlalchemy/base.py#L1011-L1013

If this method is deleted, the warning message will no longer be displayed, but you will not be able to use this library with SQLAlchemy 1.4. https://github.com/laughingman7743/PyAthena/blob/master/pyathena/sqlalchemy/base.py#L1015-L1017

This issue has been addressed many times in the past. You may want to check past issues.