cloudera / impyla

Python DB API 2.0 client for Impala and Hive (HiveServer2 protocol)
Apache License 2.0
731 stars 248 forks source link

`ImpalaDialect.get_columns` incompatible with the latest SQLAlchemy 2.0 version #536

Closed lazyhope closed 6 months ago

lazyhope commented 8 months ago

With the new SQLAlchemy 2.0 version ImpalaDialect.get_columns is broken, since connection.execute('plain_text') is deprecated and should be replaced with connection.execute(text('plain_text')) where text is imported from sqlalchemy, so this line and any other connection.execute would fail: https://github.com/cloudera/impyla/blob/747e1da3d0df6abae9beb633cb9ebdd6f210ad30/impala/sqlalchemy.py#L264

tomanizer commented 6 months ago

fixed in d6582ad