Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitcfdcab7

Browse files
authored
Merging changes from v3.7.1 release (#488)
* Increased the number of retry attempts allowed (#486)Updated the number of attempts allowed* bump version to 3.7.1 (#487)bumped up version* Refractore* Minor change
1 parent1d3d8d7 commitcfdcab7

File tree

7 files changed

+17
-5
lines changed

7 files changed

+17
-5
lines changed

‎CHANGELOG.md‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
- 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.
66
- Pyarrow dependency is now optional in`databricks-sql-connector`. Users needing arrow are supposed to explicitly install pyarrow
77

8+
#3.7.1 (2025-01-07)
9+
10+
- Relaxed the number of Http retry attempts (databricks/databricks-sql-python#486 by@jprakash-db)
11+
812
#3.7.0 (2024-12-23)
913

1014
- Fix: Incorrect number of rows fetched in inline results when fetching results with FETCH_NEXT orientation (databricks/databricks-sql-python#479 by@jprakash-db)

‎src/databricks/sql/thrift_backend.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
_retry_policy= {# (type, default, min, max)
6868
"_retry_delay_min": (float,1,0.1,60),
6969
"_retry_delay_max": (float,30,5,3600),
70-
"_retry_stop_after_attempts_count": (int,5,1,60),
70+
"_retry_stop_after_attempts_count": (int,30,1,60),
7171
"_retry_stop_after_attempts_duration": (float,900,1,86400),
7272
"_retry_delay_default": (float,5,1,60),
7373
}

‎tests/unit/test_arrow_queue.py‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
importunittest
22
importpytest
3+
34
try:
45
importpyarrowaspa
56
exceptImportError:
67
pa=None
78
fromdatabricks.sql.utilsimportArrowQueue
89

10+
911
@pytest.mark.skipif(paisNone,reason="PyArrow is not installed")
1012
classArrowQueueSuite(unittest.TestCase):
1113
@staticmethod

‎tests/unit/test_cloud_fetch_queue.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
importdatabricks.sql.utilsasutils
1111
fromdatabricks.sql.typesimportSSLOptions
1212

13+
1314
@pytest.mark.skipif(pyarrowisNone,reason="PyArrow is not installed")
1415
classCloudFetchQueueSuite(unittest.TestCase):
1516
defcreate_result_link(

‎tests/unit/test_fetches.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,12 @@
55
try:
66
importpyarrowaspa
77
exceptImportError:
8-
pa=None
8+
pa=None
99

1010
importdatabricks.sql.clientasclient
1111
fromdatabricks.sql.utilsimportExecuteResponse,ArrowQueue
1212

13+
1314
@pytest.mark.skipif(paisNone,reason="PyArrow is not installed")
1415
classFetchTests(unittest.TestCase):
1516
"""

‎tests/unit/test_fetches_bench.py‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
11
importunittest
22
fromunittest.mockimportMock
3+
34
try:
45
importpyarrowaspa
56
exceptImportError:
6-
pa=None
7+
pa=None
78
importuuid
89
importtime
910
importpytest
1011

1112
importdatabricks.sql.clientasclient
1213
fromdatabricks.sql.utilsimportExecuteResponse,ArrowQueue
1314

15+
1416
@pytest.mark.skipif(paisNone,reason="PyArrow is not installed")
1517
classFetchBenchmarkTests(unittest.TestCase):
1618
"""

‎tests/unit/test_thrift_backend.py‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,11 @@
66
fromunittest.mockimportpatch,MagicMock,Mock
77
fromsslimportCERT_NONE,CERT_REQUIRED
88
fromurllib3importHTTPSConnectionPool
9+
910
try:
1011
importpyarrow
1112
exceptImportError:
12-
pyarrow=None
13+
pyarrow=None
1314
importdatabricks.sql
1415
fromdatabricks.sqlimportutils
1516
fromdatabricks.sql.typesimportSSLOptions
@@ -28,7 +29,8 @@ def retry_policy_factory():
2829
"_retry_delay_default": (float,5,1,60),
2930
}
3031

31-
@pytest.mark.skipif(pyarrowisNone,reason="PyArrow is not installed")
32+
33+
@pytest.mark.skipif(pyarrowisNone,reason="PyArrow is not installed")
3234
classThriftBackendTestSuite(unittest.TestCase):
3335
okay_status=ttypes.TStatus(statusCode=ttypes.TStatusCode.SUCCESS_STATUS)
3436

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp