Skip to content

Commit 13599a9

Browse files
version 2.9.4 (#361)
bump version to 2.9.4 Signed-off-by: Andre Furlan <[email protected]>
1 parent da723e5 commit 13599a9

File tree

5 files changed

+8
-7
lines changed

5 files changed

+8
-7
lines changed

CHANGELOG.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
# Release History
22

3-
## 2.9.4 (Unreleased)
4-
5-
## 2.9.4b1 (2024-02-16)
3+
## 2.9.4 (2024-02-20)
64

75
- Fix: Cloud fetch file download errors (#356)
86
- Fix: Redact the URL query parameters from the urllib3.connectionpool logs (#341)

pyproject.toml

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

src/databricks/sql/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def __repr__(self):
6060
DATE = DBAPITypeObject("date")
6161
ROWID = DBAPITypeObject()
6262

63-
__version__ = "2.9.4b1"
63+
__version__ = "2.9.4"
6464
USER_AGENT_NAME = "PyDatabricksSqlConnector"
6565

6666
# These two functions are pyhive legacy

src/databricks/sql/cloudfetch/downloader.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
logger = logging.getLogger(__name__)
1212

13-
DEFAULT_CLOUD_FILE_TIMEOUT = int(os.getenv("DATABRICKS_CLOUD_FILE_TIMEOUT", 60))
13+
DEFAULT_CLOUD_FILE_TIMEOUT = int(os.getenv("DATABRICKS_CLOUD_FILE_TIMEOUT", 180))
1414

1515

1616
@dataclass
@@ -221,7 +221,7 @@ def http_get_with_retry(url, max_retries=5, backoff_factor=2, download_timeout=6
221221
return response
222222
else:
223223
logger.error(response)
224-
except requests.RequestException as e:
224+
except Exception as e:
225225
# if this is not redacted, it will print the pre-signed URL
226226
logger.error(f"request failed with exception: {re.sub(pattern, mask, str(e))}")
227227
finally:

src/databricks/sql/utils.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,9 @@ def _create_next_table(self) -> Union[pyarrow.Table, None]:
226226
# The server rarely prepares the exact number of rows requested by the client in cloud fetch.
227227
# Subsequently, we drop the extraneous rows in the last file if more rows are retrieved than requested
228228
if arrow_table.num_rows > downloaded_file.row_count:
229+
logger.debug(
230+
f"received {arrow_table.num_rows} rows, expected {downloaded_file.row_count} rows. Dropping extraneous rows."
231+
)
229232
self.start_row_index += downloaded_file.row_count
230233
return arrow_table.slice(0, downloaded_file.row_count)
231234

0 commit comments

Comments
 (0)