Skip to content

Commit e2d4ef5

Browse files
line breaks after multi line pydocs, reduce diff of redundant changes
Signed-off-by: varun-edachali-dbx <varun.edachali@databricks.com>
1 parent f75f2b5 commit e2d4ef5

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/databricks/sql/result_set.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -503,6 +503,7 @@ def _convert_json_to_arrow(self, rows: List) -> "pyarrow.Table":
503503
"""
504504
Convert raw data rows to Arrow table.
505505
"""
506+
506507
columns = []
507508
num_cols = len(rows[0])
508509
for i in range(num_cols):

tests/e2e/test_driver.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -496,8 +496,8 @@ def test_get_columns(self):
496496
for table in table_names:
497497
cursor.execute("DROP TABLE IF EXISTS {}".format(table))
498498

499-
def test_escape_single_quotes(self, extra_params):
500-
with self.cursor(extra_params) as cursor:
499+
def test_escape_single_quotes(self):
500+
with self.cursor({}) as cursor:
501501
table_name = "table_{uuid}".format(uuid=str(uuid4()).replace("-", "_"))
502502
# Test escape syntax directly
503503
cursor.execute(
@@ -522,7 +522,7 @@ def test_escape_single_quotes(self, extra_params):
522522
assert rows[0]["col_1"] == "you're"
523523

524524
def test_get_schemas(self):
525-
with self.cursor() as cursor:
525+
with self.cursor({}) as cursor:
526526
database_name = "db_{uuid}".format(uuid=str(uuid4()).replace("-", "_"))
527527
try:
528528
cursor.execute("CREATE DATABASE IF NOT EXISTS {}".format(database_name))
@@ -540,7 +540,7 @@ def test_get_schemas(self):
540540
cursor.execute("DROP DATABASE IF EXISTS {}".format(database_name))
541541

542542
def test_get_catalogs(self):
543-
with self.cursor() as cursor:
543+
with self.cursor({}) as cursor:
544544
cursor.catalogs()
545545
cursor.fetchall()
546546
catalogs_desc = cursor.description
@@ -591,7 +591,7 @@ def test_unicode(self, extra_params):
591591
assert results[0][0] == unicode_str
592592

593593
def test_cancel_during_execute(self):
594-
with self.cursor() as cursor:
594+
with self.cursor({}) as cursor:
595595

596596
def execute_really_long_query():
597597
cursor.execute(

tests/e2e/test_parameterized_queries.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
from contextlib import contextmanager
33
from decimal import Decimal
44
from enum import Enum
5-
import json
65
from typing import Dict, List, Type, Union
76
from unittest.mock import patch
87

0 commit comments

Comments
 (0)