Skip to content

Commit 01c9b95

Browse files
remove excess changes
Signed-off-by: varun-edachali-dbx <varun.edachali@databricks.com>
1 parent 404aadf commit 01c9b95

File tree

2 files changed

+6
-12
lines changed

2 files changed

+6
-12
lines changed

src/databricks/sql/backend/sea/backend.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050

5151

5252
def _filter_session_configuration(
53-
session_configuration: Optional[Dict[str, Any]]
53+
session_configuration: Optional[Dict[str, str]]
5454
) -> Optional[Dict[str, str]]:
5555
if not session_configuration:
5656
return None
@@ -60,7 +60,7 @@ def _filter_session_configuration(
6060

6161
for key, value in session_configuration.items():
6262
if key.upper() in ALLOWED_SESSION_CONF_TO_DEFAULT_VALUES_MAP:
63-
filtered_session_configuration[key.lower()] = str(value)
63+
filtered_session_configuration[key.lower()] = value
6464
else:
6565
ignored_configs.add(key)
6666

@@ -188,7 +188,7 @@ def max_download_threads(self) -> int:
188188

189189
def open_session(
190190
self,
191-
session_configuration: Optional[Dict[str, Any]],
191+
session_configuration: Optional[Dict[str, str]],
192192
catalog: Optional[str],
193193
schema: Optional[str],
194194
) -> SessionId:

tests/e2e/common/large_queries_mixin.py

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,7 @@ def fetch_rows(self, cursor, row_count, fetchmany_size):
4848
"extra_params",
4949
[
5050
{},
51-
{
52-
"use_sea": True,
53-
},
51+
{"use_sea": True},
5452
],
5553
)
5654
def test_query_with_large_wide_result_set(self, extra_params):
@@ -83,9 +81,7 @@ def test_query_with_large_wide_result_set(self, extra_params):
8381
"extra_params",
8482
[
8583
{},
86-
{
87-
"use_sea": True,
88-
},
84+
{"use_sea": True},
8985
],
9086
)
9187
def test_query_with_large_narrow_result_set(self, extra_params):
@@ -106,9 +102,7 @@ def test_query_with_large_narrow_result_set(self, extra_params):
106102
"extra_params",
107103
[
108104
{},
109-
{
110-
"use_sea": True,
111-
},
105+
{"use_sea": True},
112106
],
113107
)
114108
def test_long_running_query(self, extra_params):

0 commit comments

Comments
 (0)