Skip to content

Commit

Permalink
Merge pull request #16 from alexmalins/resolve-tilder-home-dir-init-path
Browse files Browse the repository at this point in the history
Bug fix: resolve initialization script paths starting with ~ & release v0.5.1
  • Loading branch information
alexmalins authored Sep 21, 2024
2 parents e0815ff + aa5dee1 commit 438a794
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/issue_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Note if you have a question about usage or a feature request, use the Discussion

OS version: <!-- Windows 11/Linux/macOS etc. -->
Python version: <!-- 3.8/3.9/3.10/3.11/3.12 -->
harlequin-databricks version: <!-- ex. 0.5.0 -->
harlequin-databricks version: <!-- ex. 0.5.1 -->
harlequin version: <!-- ex. 1.24.0 -->
Installed via: <!-- pip/conda-forge -->

Expand Down
15 changes: 12 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,16 @@ All notable changes to this project will be documented in this file.

## [Unreleased]

## [0.5.1] - 2024-09-21

### Bug Fixes

- Fix bug to properly resolve initialization script paths starting with `~` (i.e. user's home
dir) supplied to `--init-path`.

## [0.5.0] - 2024-09-21

## Features
### Features

- Add support for initialization scripts. By default harlequin-databricks will attempt to run an
initialization script of SQL commands against Databricks from `~/.databricksrc` or from the file
Expand All @@ -17,7 +24,7 @@ a non-existent file path to `--init-path`. (#14)

## [0.4.0] - 2024-09-01

## Features
### Features

- Add support for cancelling queries mid-flight. Requires Harlequin `>=1.24.0` which introduced
the "Cancel Query" button.
Expand Down Expand Up @@ -85,7 +92,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.5.0...HEAD
[Unreleased]: https://github.com/alexmalins/harlequin-databricks/compare/0.5.1...HEAD

[0.5.1]: https://github.com/alexmalins/harlequin-databricks/compare/0.5.0...0.5.1

[0.5.0]: https://github.com/alexmalins/harlequin-databricks/compare/0.4.0...0.5.0

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "harlequin-databricks"
version = "0.5.0"
version = "0.5.1"
description = "A Harlequin adapter for Databricks."
authors = [
"Zach Shirah <[email protected]>",
Expand Down
2 changes: 1 addition & 1 deletion src/harlequin_databricks/adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,7 @@ def __init__(
) -> None:
try:
init_path = (
Path(init_path).resolve()
Path(init_path).expanduser().resolve()
if init_path is not None
else Path.home() / ".databricksrc"
)
Expand Down

0 comments on commit 438a794

Please sign in to comment.