Skip to content

Commit

Permalink
fix: closing databricks connection after fetching the data in duc (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
gfvioli authored Jan 22, 2025
1 parent 76594ca commit 71a42e0
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion libraries/dagster-delta-polars/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "dagster-delta-polars"
version = "0.1.4"
version = "0.1.5"
description = "Polars deltalake IO Managers for Dagster with optional LakeFS support"
readme = "README.md"
requires-python = ">=3.9"
Expand Down
2 changes: 1 addition & 1 deletion libraries/dagster-delta/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "dagster-delta"
version = "0.1.4"
version = "0.1.5"
description = "base deltalake IO Managers for Dagster"
readme = "README.md"
requires-python = ">=3.9"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,8 @@ def read_uc_table(
)
cursor.execute(query)

return pl.DataFrame(cursor.fetchall_arrow())
df = pl.DataFrame(cursor.fetchall_arrow())

conn.close()

return df
2 changes: 1 addition & 1 deletion libraries/dagster-unity-catalog-polars/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "dagster-unity-catalog-polars"
version = "0.1.4"
version = "0.1.5"
description = "Polars Unity Catalog IO Managers for Dagster"
readme = "README.md"
requires-python = ">=3.9"
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ polars
dagster
lakefs
pydantic>=2
pyarrow
pyarrow==18.0.0
databricks-sdk
databricks-sql-connector
deltalake
Expand Down

0 comments on commit 71a42e0

Please sign in to comment.