From 6ce555affe39a2453d5f8bd29ba893d2dc8f6ef2 Mon Sep 17 00:00:00 2001 From: Jothi Prakash Date: Wed, 13 Nov 2024 11:17:32 +0530 Subject: [PATCH] Removed all sqlalchemy related stuff --- CHANGELOG.md | 5 +++++ README.md | 19 ++++++++++++++++++- pyproject.toml | 3 +-- 3 files changed, 24 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e1a70f96..3eb7cacd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Release History +# 4.0.0 + +- Split the connector into two separate packages: `databricks-sql-connector` and `databricks-sqlalchemy`. The `databricks-sql-connector` package contains the core functionality of the connector, while the `databricks-sqlalchemy` package contains the SQLAlchemy dialect for the connector. +- Pyarrow dependency is now optional in `databricks-sql-connector`. Users needing arrow are supposed to explicitly install pyarrow + # 3.6.0 (2024-10-25) - Support encryption headers in the cloud fetch request (https://github.com/databricks/databricks-sql-python/pull/460 by @jackyhu-db) diff --git a/README.md b/README.md index 156d914a..a4c5a130 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,12 @@ For the latest documentation, see ## Quickstart -Install the library with `pip install databricks-sql-connector[pyarrow]` +### Installing the core library +Install using `pip install databricks-sql-connector` + +### Installing the core library with PyArrow +Install using `pip install databricks-sql-connector[pyarrow]` + ```bash export DATABRICKS_HOST=********.databricks.com @@ -60,6 +65,18 @@ or to a Databricks Runtime interactive cluster (e.g. /sql/protocolv1/o/123456789 > to authenticate the target Databricks user account and needs to open the browser for authentication. So it > can only run on the user's machine. +## SQLAlchemy +Starting from `databricks-sql-connector` version 4.0.0 SQLAlchemy support has been extracted to a new library `databricks-sqlalchemy`. + +- Github repository [databricks-sqlalchemy github](https://github.com/databricks/databricks-sqlalchemy) +- PyPI [databricks-sqlalchemy pypi](https://pypi.org/project/databricks-sqlalchemy/) + +### Quick SQLAlchemy guide +Users can now choose between using the SQLAlchemy v1 or SQLAlchemy v2 dialects with the connector core + +- Install the latest SQLAlchemy v1 using `pip install databricks-sqlalchemy~=1.0` +- Install SQLAlchemy v2 using `pip install databricks-sqlalchemy` + ## Contributing diff --git a/pyproject.toml b/pyproject.toml index 2c9ae89f..bfe42a2e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "databricks-sql-connector" -version = "4.0.0.b3" +version = "4.0.0.b4" description = "Databricks SQL Connector for Python" authors = ["Databricks "] license = "Apache-2.0" @@ -23,7 +23,6 @@ numpy = [ ] openpyxl = "^3.0.10" urllib3 = ">=1.26" - pyarrow = { version = ">=14.0.1,<17", optional=true } [tool.poetry.extras]