Skip to content

Commit 93468e6

Browse files
reduce diff (remove newlines)
Signed-off-by: varun-edachali-dbx <[email protected]>
1 parent a6788f8 commit 93468e6

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/databricks/sql/result_set.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,6 @@ def fetchmany_arrow(self, size: int) -> "pyarrow.Table":
310310
311311
An empty sequence is returned when no more rows are available.
312312
"""
313-
314313
if size < 0:
315314
raise ValueError("size argument for fetchmany is %s but must be >= 0", size)
316315
results = self.results.next_n_rows(size)
@@ -335,7 +334,6 @@ def fetchmany_columnar(self, size: int):
335334
Fetch the next set of rows of a query result, returning a Columnar Table.
336335
An empty sequence is returned when no more rows are available.
337336
"""
338-
339337
if size < 0:
340338
raise ValueError("size argument for fetchmany is %s but must be >= 0", size)
341339

@@ -400,7 +398,6 @@ def fetchone(self) -> Optional[Row]:
400398
Fetch the next row of a query result set, returning a single sequence,
401399
or None when no more data is available.
402400
"""
403-
404401
if isinstance(self.results, ColumnQueue):
405402
res = self._convert_columnar_table(self.fetchmany_columnar(1))
406403
else:
@@ -415,7 +412,6 @@ def fetchall(self) -> List[Row]:
415412
"""
416413
Fetch all (remaining) rows of a query result, returning them as a list of rows.
417414
"""
418-
419415
if isinstance(self.results, ColumnQueue):
420416
return self._convert_columnar_table(self.fetchall_columnar())
421417
else:
@@ -427,7 +423,6 @@ def fetchmany(self, size: int) -> List[Row]:
427423
428424
An empty sequence is returned when no more rows are available.
429425
"""
430-
431426
if isinstance(self.results, ColumnQueue):
432427
return self._convert_columnar_table(self.fetchmany_columnar(size))
433428
else:

0 commit comments

Comments
 (0)