Skip to content

Commit 8346de6

Browse files
committed
nit
1 parent 2dc578d commit 8346de6

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

src/databricks/sql/client.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,6 @@
4949
from databricks.sql.thrift_api.TCLIService.ttypes import (
5050
TSparkParameter,
5151
TOperationState,
52-
TSparkParameterValue,
53-
TSparkParameterValueArg,
5452
)
5553

5654

tests/e2e/test_complex_types.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def table_fixture(self, connection_details):
2222
array_array_col ARRAY<ARRAY<STRING>>,
2323
array_map_col ARRAY<MAP<STRING, INTEGER>>,
2424
map_array_col MAP<STRING, ARRAY<STRING>>
25-
)
25+
) USING DELTA
2626
"""
2727
)
2828
# Insert a record
@@ -41,7 +41,7 @@ def table_fixture(self, connection_details):
4141
)
4242
yield
4343
# Clean up the table after the test
44-
cursor.execute("DROP TABLE IF EXISTS pysql_test_complex_types_table")
44+
cursor.execute("DELETE FROM pysql_test_complex_types_table")
4545

4646
@pytest.mark.parametrize(
4747
"field,expected_type",

tests/e2e/test_parameterized_queries.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -179,9 +179,9 @@ def _inline_roundtrip(self, params: dict, paramstyle: ParamStyle, target_column)
179179
:paramstyle:
180180
This is a no-op but is included to make the test-code easier to read.
181181
"""
182-
INSERT_QUERY = f"INSERT INTO ___________________first.jprakash.pysql_e2e_inline_param_test_table (`{target_column}`) VALUES (%(p)s)"
183-
SELECT_QUERY = f"SELECT {target_column} `col` FROM ___________________first.jprakash.pysql_e2e_inline_param_test_table LIMIT 1"
184-
DELETE_QUERY = "DELETE FROM ___________________first.jprakash.pysql_e2e_inline_param_test_table"
182+
INSERT_QUERY = f"INSERT INTO pysql_e2e_inline_param_test_table (`{target_column}`) VALUES (%(p)s)"
183+
SELECT_QUERY = f"SELECT {target_column} `col` FROM pysql_e2e_inline_param_test_table LIMIT 1"
184+
DELETE_QUERY = "DELETE FROM pysql_e2e_inline_param_test_table"
185185

186186
with self.connection(extra_params={"use_inline_params": True}) as conn:
187187
with conn.cursor() as cursor:

0 commit comments

Comments
 (0)