A Harlequin adapter for Databricks.
Project description
harlequin-databricks
A Harlequin adapter for Databricks. Supports connecting to Databricks SQL warehouses or Databricks Runtime (DBR) interactive clusters.
Installation
harlequin-databricks
depends on harlequin
, so installing this package will also install Harlequin.
Using pip
To install this adapter into an activated virtual environment:
pip install harlequin-databricks
Using poetry
poetry add harlequin-databricks
Using pipx
If you do not already have Harlequin installed:
pipx install harlequin-databricks
If you would like to add the Databricks adapter to an existing Harlequin installation:
pipx inject harlequin harlequin-databricks
As an Extra
Alternatively, you can install Harlequin with the databricks
extra:
pip install harlequin[databricks]
poetry add harlequin[databricks]
pipx install harlequin[databricks]
Usage and Configuration
For a minimum connection you are going to need:
- server-hostname
- http-path
- access-token
harlequin -a databricks --server-hostname my_databricks.cloud.databricks.com --http-path /sql/1.0/endpoints/1234567890abcdef --access-token dabpi***
Authentication is also possible using a username and password (known as basic authentication):
harlequin -a databricks --server-hostname my_databricks.cloud.databricks.com --http-path /sql/1.0/endpoints/1234567890abcdef --username my_user --password my_pass
Or by using OAuth user-to-machine (U2M) authentication:
harlequin -a databricks --server-hostname my_databricks.cloud.databricks.com --http-path /sql/1.0/endpoints/1234567890abcdef --auth-type databricks-oauth
For more details on command line options, run:
harlequin --help
For more information, see the harlequin-databricks Docs.
Issues, Contributions and Feature Requests
Please report bugs/issues with this adapter via the GitHub issues page. You are welcome to attempt fixes yourself by forking this repo then opening an PR.
For feature suggestions, please post in the discussions.
Special thanks to...
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for harlequin_databricks-0.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2b5788ba94b8d4f9803fc7393770116cee6f70d0c08085f488cb8e133fe676c6 |
|
MD5 | e4cf51e1e8ea1b48e0ef5cefc7ddfa05 |
|
BLAKE2b-256 | 9f599a457be2540fd85e312638037f1768eae033737da8752da8b70f094a7c44 |
Hashes for harlequin_databricks-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0a11e507fba6e382440a425d7adbda8017744a2c481b4c73ce11947319f7a449 |
|
MD5 | 21a5ca4bb762a2b3379771a84bb7a475 |
|
BLAKE2b-256 | 2d9438b3a6e90f81035c33ccb082d2ec6deedb0832d612ce01b83b35d4d0cf46 |