From fd66a2a8041a1b31898bbfd10ecc8de70833253f Mon Sep 17 00:00:00 2001 From: ptiurin Date: Mon, 17 Nov 2025 10:58:14 +0000 Subject: [PATCH] fix(FIR-50880): Async close failure --- src/firebolt_db/firebolt_async_dialect.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/firebolt_db/firebolt_async_dialect.py b/src/firebolt_db/firebolt_async_dialect.py index 23946e3..e1fa5cd 100644 --- a/src/firebolt_db/firebolt_async_dialect.py +++ b/src/firebolt_db/firebolt_async_dialect.py @@ -109,6 +109,15 @@ def _set_parameters(self) -> Dict[str, Any]: def _set_parameters(self, value: Dict[str, Any]) -> None: self._cursor._set_parameters = value + async def _async_soft_close(self) -> None: + """close the cursor but keep the results pending, and memoize the + description. + + We don't have ability to memorize results with async driver yet so + keeping this a no-op. + + """ + class AsyncConnectionWrapper(AdaptedConnection): await_ = staticmethod(await_only)