Replace sqlalchemy-trino with trino[sqlalchemy] (#3800)

This commit is contained in:
dvecerdea 2022-04-01 20:12:03 +01:00 committed by GitHub
parent dcd27b0d91
commit 23d68b24d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -102,7 +102,7 @@ plugins: Dict[str, Set[str]] = {
"oracle": {"cx_Oracle"},
"powerbi": {"python-power-bi==0.1.2"},
"presto": {"pyhive~=0.6.3"},
"trino": {"sqlalchemy-trino==0.4.1"},
"trino": {"trino[sqlalchemy]"},
"postgres": {"pymysql>=1.0.2", "psycopg2-binary", "GeoAlchemy2"},
"redash": {"redash-toolbelt==0.1.8"},
"redshift": {"sqlalchemy-redshift==0.8.9", "psycopg2-binary", "GeoAlchemy2"},

View File

@ -60,7 +60,7 @@ class TrinoSource(SQLSource):
self.schema_names = None
self.inspector = None
try:
from sqlalchemy_trino import (
from trino import (
dbapi, # pylint: disable=import-outside-toplevel,unused-import
)
except ModuleNotFoundError: