Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/issue_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Note if you have a question about usage or a feature request, use the Discussion
#### Environment

OS version: <!-- Windows 11/Linux/macOS etc. -->
Python version: <!-- 3.10/3.11/3.12/3.13 -->
Python version: <!-- 3.10/3.11/3.12/3.13/3.14 -->
harlequin-databricks version: <!-- ex. 0.5.2 -->
harlequin version: <!-- ex. 1.24.0 -->
Installed via: <!-- pip/conda-forge -->
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/code_quality_checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
strategy:
matrix:
os: ['ubuntu-latest']
python-version: ['3.10', '3.13']
python-version: ['3.10', '3.14']
defaults:
run:
shell: bash
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pypi_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
python-version: ['3.13']
python-version: ['3.14']
env:
OS: ${{ matrix.os }}
PYTHON: ${{ matrix.python-version }}
Expand Down
12 changes: 10 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,13 @@ All notable changes to this project will be documented in this file.

## [Unreleased]

## [0.6.3] - 2025-12-24
## [0.6.4] - 2025-12-19

### Bug Fixes

- Add explicit Python 3.14 support (#23 & #25).

## [0.6.3] - 2025-12-14

### Bug Fixes

Expand Down Expand Up @@ -150,7 +156,9 @@ is the one written with hyphens not underscores.

- Adds a Databricks adapter for SQL warehouses and DBR interactive clusters.

[Unreleased]: https://github.com/alexmalins/harlequin-databricks/compare/0.6.3...HEAD
[Unreleased]: https://github.com/alexmalins/harlequin-databricks/compare/0.6.4...HEAD

[0.6.4]: https://github.com/alexmalins/harlequin-databricks/compare/0.6.3...0.6.4

[0.6.3]: https://github.com/alexmalins/harlequin-databricks/compare/0.6.2...0.6.3

Expand Down
11 changes: 6 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "harlequin-databricks"
version = "0.6.3"
version = "0.6.4"
description = "A Harlequin adapter for Databricks."
authors = [
{ name = "Alex Malins", email = "[email protected]" },
Expand All @@ -23,6 +23,7 @@ classifiers = [
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Operating System :: OS Independent",
"Topic :: Database",
"Topic :: Database :: Front-Ends",
Expand All @@ -41,12 +42,12 @@ keywords = [
"data lake",
]
dependencies = [
"databricks-sql-connector>=4.0.4",
"harlequin>=2.0.4",
"databricks-sql-connector>=4.2.3",
"harlequin>=2.5.0",
]

[project.optional-dependencies]
databricks-sdk = ["databricks-sdk>=0.57.0"]
databricks-sdk = ["databricks-sdk>=0.76.0"]

[project.urls]
Homepage = "https://harlequin.sh/docs/databricks/index"
Expand Down Expand Up @@ -78,7 +79,7 @@ requires = ["uv_build>=0.7.16"]
build-backend = "uv_build"

[tool.ruff]
target-version = "py39"
target-version = "py310"

[tool.ruff.lint]
select = ["ALL"]
Expand Down
14 changes: 11 additions & 3 deletions src/harlequin_databricks/adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,7 @@ def get_catalog(self) -> Catalog:
for table_arrow, table_type_arrow in zip(
tables["TABLE_NAME"],
tables["TABLE_TYPE"],
strict=True,
):
table = table_arrow.as_py()

Expand All @@ -317,7 +318,9 @@ def get_catalog(self) -> Catalog:
type_label=column_type.as_py(),
)
for column, column_type in zip(
columns["COLUMN_NAME"], columns["TYPE_NAME"]
columns["COLUMN_NAME"],
columns["TYPE_NAME"],
strict=True,
)
]

Expand Down Expand Up @@ -351,7 +354,9 @@ def get_catalog(self) -> Catalog:
# Sort the catalogs again to ensure legacy and unity catalogs appear alphabetically:
catalog_items = [
catalog_item
for _, catalog_item in sorted(zip(seen_catalogs, catalog_items))
for _, catalog_item in sorted(
zip(seen_catalogs, catalog_items, strict=True)
)
]

self._existing_catalog = Catalog(items=catalog_items)
Expand Down Expand Up @@ -464,6 +469,7 @@ def _get_unity_catalogs(
for table_arrow, table_type_arrow in zip(
tables["table_name"],
tables["table_type"],
strict=True,
):
table = table_arrow.as_py()

Expand All @@ -482,7 +488,9 @@ def _get_unity_catalogs(
type_label=column_type.as_py(),
)
for column, column_type in zip(
columns["column_name"], columns["data_type"]
columns["column_name"],
columns["data_type"],
strict=True,
)
]

Expand Down
Loading