From b86b53825e0856dcaa0826c3d7b9c479bfee74da Mon Sep 17 00:00:00 2001 From: Ben Cassell Date: Tue, 19 Mar 2024 12:59:52 -0700 Subject: [PATCH 1/2] bump to 3.1.1 Signed-off-by: Ben Cassell --- CHANGELOG.md | 6 +++++- pyproject.toml | 2 +- src/databricks/sql/__init__.py | 5 ++--- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 607656dd9..7eca0bda4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,11 @@ # x.x.x (TBD) -- Don't retry requests that fail with code 403 +# 3.1.1 (2024-03-19) + +- Don't retry requests that fail with code 403 (#373) +- Assume a default retry-after for 429/503 (#371) +- Fix boolean literals (#357) # 3.1.0 (2024-02-16) diff --git a/pyproject.toml b/pyproject.toml index 784954fc0..fae61739f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "databricks-sql-connector" -version = "3.1.0" +version = "3.1.1" description = "Databricks SQL Connector for Python" authors = ["Databricks "] license = "Apache-2.0" diff --git a/src/databricks/sql/__init__.py b/src/databricks/sql/__init__.py index 004250f6d..8bb5d73dd 100644 --- a/src/databricks/sql/__init__.py +++ b/src/databricks/sql/__init__.py @@ -32,8 +32,7 @@ def filter(self, record): ) else: record.args = tuple( - (self.redact(arg) if isinstance(arg, str) else arg) - for arg in record.args + (self.redact(arg) if isinstance(arg, str) else arg) for arg in record.args ) return True @@ -62,7 +61,7 @@ def __repr__(self): DATE = DBAPITypeObject("date") ROWID = DBAPITypeObject() -__version__ = "3.1.0" +__version__ = "3.1.1" USER_AGENT_NAME = "PyDatabricksSqlConnector" # These two functions are pyhive legacy From d5e7458cecb0f3ae23f842244be2c3b01b4f8276 Mon Sep 17 00:00:00 2001 From: Ben Cassell Date: Tue, 19 Mar 2024 13:05:26 -0700 Subject: [PATCH 2/2] linting Signed-off-by: Ben Cassell --- src/databricks/sql/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/databricks/sql/__init__.py b/src/databricks/sql/__init__.py index 8bb5d73dd..2cc54e25e 100644 --- a/src/databricks/sql/__init__.py +++ b/src/databricks/sql/__init__.py @@ -32,7 +32,8 @@ def filter(self, record): ) else: record.args = tuple( - (self.redact(arg) if isinstance(arg, str) else arg) for arg in record.args + (self.redact(arg) if isinstance(arg, str) else arg) + for arg in record.args ) return True