Skip to content

Commit 9c5b985

Browse files
authored
Fix: Make sure to commit a transaction when fetching a dataframe using Pandas API (#2732)
1 parent 768aa12 commit 9c5b985

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sqlmesh/core/engine_adapter/mixins.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def _fetch_native_df(
6161
else query
6262
)
6363
logger.debug(f"Executing SQL:\n{sql}")
64-
with catch_warnings():
64+
with catch_warnings(), self.transaction():
6565
filterwarnings(
6666
"ignore",
6767
category=UserWarning,

0 commit comments

Comments
 (0)