Skip to content

Commit 24ac66c

Browse files
committed
prep for 2.9.5
Signed-off-by: Ben Cassell <[email protected]>
1 parent 6384ef7 commit 24ac66c

File tree

4 files changed

+29
-7
lines changed

4 files changed

+29
-7
lines changed

CHANGELOG.md

+23-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Release History
22

3+
## 2.9.5 (2024-03-19)
4+
5+
- Fix: retry-after has a default value of 1 (#371)
6+
37
## 2.9.4 (2024-02-20)
48

59
- Fix: Cloud fetch file download errors (#356)
@@ -68,6 +72,7 @@
6872
- Other: Relax sqlalchemy required version as it was unecessarily strict.
6973

7074
## 2.5.0 (2023-04-14)
75+
7176
- Add support for External Auth providers
7277
- Fix: Python HTTP proxies were broken
7378
- Other: All Thrift requests that timeout during connection will be automatically retried
@@ -89,8 +94,8 @@
8994

9095
## 2.2.2 (2023-01-03)
9196

92-
- Support custom oauth client id and redirect port
93-
- Fix: Add none check on _oauth_persistence in DatabricksOAuthProvider
97+
- Support custom oauth client id and redirect port
98+
- Fix: Add none check on \_oauth_persistence in DatabricksOAuthProvider
9499

95100
## 2.2.1 (2022-11-29)
96101

@@ -122,57 +127,71 @@ Huge thanks to @dbaxa for contributing this change!
122127

123128
- Add retry logic for `GetOperationStatus` requests that fail with an `OSError`
124129
- Reorganised code to use Poetry for dependency management.
130+
125131
## 2.0.2 (2022-05-04)
132+
126133
- Better exception handling in automatic connection close
127134

128135
## 2.0.1 (2022-04-21)
136+
129137
- Fixed Pandas dependency in setup.cfg to be >= 1.2.0
130138

131139
## 2.0.0 (2022-04-19)
140+
132141
- Initial stable release of V2
133-
- Added better support for complex types, so that in Databricks runtime 10.3+, Arrays, Maps and Structs will get
142+
- Added better support for complex types, so that in Databricks runtime 10.3+, Arrays, Maps and Structs will get
134143
deserialized as lists, lists of tuples and dicts, respectively.
135144
- Changed the name of the metadata arg to http_headers
136145

137146
## 2.0.b2 (2022-04-04)
147+
138148
- Change import of collections.Iterable to collections.abc.Iterable to make the library compatible with Python 3.10
139149
- Fixed bug with .tables method so that .tables works as expected with Unity-Catalog enabled endpoints
140150

141151
## 2.0.0b1 (2022-03-04)
152+
142153
- Fix packaging issue (dependencies were not being installed properly)
143154
- Fetching timestamp results will now return aware instead of naive timestamps
144155
- The client will now default to using simplified error messages
145156

146157
## 2.0.0b (2022-02-08)
158+
147159
- Initial beta release of V2. V2 is an internal re-write of large parts of the connector to use Databricks edge features. All public APIs from V1 remain.
148-
- Added Unity Catalog support (pass catalog and / or schema key word args to the .connect method to select initial schema and catalog)
160+
- Added Unity Catalog support (pass catalog and / or schema key word args to the .connect method to select initial schema and catalog)
149161

150162
---
151163

152164
**Note**: The code for versions prior to `v2.0.0b` is not contained in this repository. The below entries are included for reference only.
153165

154166
---
167+
155168
## 1.0.0 (2022-01-20)
169+
156170
- Add operations for retrieving metadata
157171
- Add the ability to access columns by name on result rows
158172
- Add the ability to provide configuration settings on connect
159173

160174
## 0.9.4 (2022-01-10)
175+
161176
- Improved logging and error messages.
162177

163178
## 0.9.3 (2021-12-08)
179+
164180
- Add retries for 429 and 503 HTTP responses.
165181

166182
## 0.9.2 (2021-12-02)
183+
167184
- (Bug fix) Increased Thrift requirement from 0.10.0 to 0.13.0 as 0.10.0 was in fact incompatible
168185
- (Bug fix) Fixed error message after query execution failed -SQLSTATE and Error message were misplaced
169186

170187
## 0.9.1 (2021-09-01)
188+
171189
- Public Preview release, Experimental tag removed
172190
- minor updates in internal build/packaging
173191
- no functional changes
174192

175193
## 0.9.0 (2021-08-04)
194+
176195
- initial (Experimental) release of pyhive-forked connector
177196
- Python DBAPI 2.0 (PEP-0249), thrift based
178197
- see docs for more info: https://docs.databricks.com/dev-tools/python-sql-connector.html

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "databricks-sql-connector"
3-
version = "2.9.4"
3+
version = "2.9.5"
44
description = "Databricks SQL Connector for Python"
55
authors = ["Databricks <[email protected]>"]
66
license = "Apache-2.0"

src/databricks/sql/__init__.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ def filter(self, record):
4040

4141
logging.getLogger("urllib3.connectionpool").addFilter(RedactUrlQueryParamsFilter())
4242

43+
4344
class DBAPITypeObject(object):
4445
def __init__(self, *values):
4546
self.values = values
@@ -60,7 +61,7 @@ def __repr__(self):
6061
DATE = DBAPITypeObject("date")
6162
ROWID = DBAPITypeObject()
6263

63-
__version__ = "2.9.4"
64+
__version__ = "2.9.5"
6465
USER_AGENT_NAME = "PyDatabricksSqlConnector"
6566

6667
# These two functions are pyhive legacy

src/databricks/sql/cloudfetch/downloader.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,9 @@ def http_get_with_retry(url, max_retries=5, backoff_factor=2, download_timeout=6
223223
logger.error(response)
224224
except Exception as e:
225225
# if this is not redacted, it will print the pre-signed URL
226-
logger.error(f"request failed with exception: {re.sub(pattern, mask, str(e))}")
226+
logger.error(
227+
f"request failed with exception: {re.sub(pattern, mask, str(e))}"
228+
)
227229
finally:
228230
session.close()
229231
# Exponential backoff before the next attempt

0 commit comments

Comments
 (0)