-
Notifications
You must be signed in to change notification settings - Fork 107
Closed
Description
Overview
I am using PyAthena 3.13.0 with sqlalchemy 2.0.40 and there is a deprecation warning regarding a missing class method on AthenaRestDialect:
sqlalchemy.exc.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.
It looks like sqlalchemy requires the method on the parent to be directly on the class and not the parent:
Here is the checking code in sqlalchemy:
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels