diff --git a/ibis/backends/trino/__init__.py b/ibis/backends/trino/__init__.py index 8eac2df72049..1efedcdc9843 100644 --- a/ibis/backends/trino/__init__.py +++ b/ibis/backends/trino/__init__.py @@ -60,23 +60,11 @@ def do_connect( message=r"The dbapi\(\) classmethod on dialect classes has been renamed", category=sa.exc.SADeprecationWarning, ) - try: - super().do_connect( - sa.create_engine( - url, - connect_args={ - **connect_args, - "experimental_python_types": True, - }, - poolclass=sa.pool.StaticPool, - ) - ) - except TypeError: - super().do_connect( - sa.create_engine( - url, connect_args=connect_args, poolclass=sa.pool.StaticPool - ) + super().do_connect( + sa.create_engine( + url, connect_args=connect_args, poolclass=sa.pool.StaticPool ) + ) @staticmethod def _new_sa_metadata(): diff --git a/poetry.lock b/poetry.lock index fa2c94644b66..77783bd6a53b 100644 --- a/poetry.lock +++ b/poetry.lock @@ -5386,4 +5386,4 @@ visualization = ["graphviz"] [metadata] lock-version = "2.0" python-versions = "^3.8" -content-hash = "d32110130aba8fd41cd3d339cec14b8694b7980cfd738ff8799a82d94cdbc700" +content-hash = "f36570c34d38949ce899063b64fa2dfe675f79475781be2abc6974afe21e1f26" diff --git a/pyproject.toml b/pyproject.toml index 619c9a234ddd..9219c745d013 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -88,7 +88,7 @@ snowflake-connector-python = { version = ">=2.7.10,<4", optional = true } snowflake-sqlalchemy = { version = ">=1.4.1,<2", optional = true } sqlalchemy = { version = ">=1.4,<3", optional = true } sqlalchemy-views = { version = ">=0.3.1,<1", optional = true } -trino = { version = ">=0.319,<1", optional = true, extras = ["sqlalchemy"] } +trino = { version = ">=0.321,<1", optional = true, extras = ["sqlalchemy"] } [tool.poetry.group.dev.dependencies] black = ">=22.1.0,<24"