@@ -310,7 +310,6 @@ def fetchmany_arrow(self, size: int) -> "pyarrow.Table":
310
310
311
311
An empty sequence is returned when no more rows are available.
312
312
"""
313
-
314
313
if size < 0 :
315
314
raise ValueError ("size argument for fetchmany is %s but must be >= 0" , size )
316
315
results = self .results .next_n_rows (size )
@@ -335,7 +334,6 @@ def fetchmany_columnar(self, size: int):
335
334
Fetch the next set of rows of a query result, returning a Columnar Table.
336
335
An empty sequence is returned when no more rows are available.
337
336
"""
338
-
339
337
if size < 0 :
340
338
raise ValueError ("size argument for fetchmany is %s but must be >= 0" , size )
341
339
@@ -400,7 +398,6 @@ def fetchone(self) -> Optional[Row]:
400
398
Fetch the next row of a query result set, returning a single sequence,
401
399
or None when no more data is available.
402
400
"""
403
-
404
401
if isinstance (self .results , ColumnQueue ):
405
402
res = self ._convert_columnar_table (self .fetchmany_columnar (1 ))
406
403
else :
@@ -415,7 +412,6 @@ def fetchall(self) -> List[Row]:
415
412
"""
416
413
Fetch all (remaining) rows of a query result, returning them as a list of rows.
417
414
"""
418
-
419
415
if isinstance (self .results , ColumnQueue ):
420
416
return self ._convert_columnar_table (self .fetchall_columnar ())
421
417
else :
@@ -427,7 +423,6 @@ def fetchmany(self, size: int) -> List[Row]:
427
423
428
424
An empty sequence is returned when no more rows are available.
429
425
"""
430
-
431
426
if isinstance (self .results , ColumnQueue ):
432
427
return self ._convert_columnar_table (self .fetchmany_columnar (size ))
433
428
else :
0 commit comments