Skip to content

Commit

Permalink
fix(python): Do not close connection just because we're not returning…
Browse files Browse the repository at this point in the history
… Arrow data in batches (#16031)
  • Loading branch information
alexander-beedie committed May 3, 2024
1 parent a3efd8c commit a3dedb1
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions py-polars/polars/io/database/_executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,8 +196,6 @@ def _from_arrow(
if re.match(f"^{driver}$", self.driver_name):
if ver := driver_properties["minimum_version"]:
self._check_module_version(self.driver_name, ver)
fetch_batches = driver_properties["fetch_batches"]
self.can_close_cursor = fetch_batches is None or not iter_batches
frames = (
self._apply_overrides(batch, (schema_overrides or {}))
if isinstance(batch, DataFrame)
Expand Down

0 comments on commit a3dedb1

Please sign in to comment.