Closed taradepan closed 7 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.
I fixed this warning.