@@ -55,7 +55,7 @@ def __init__(
5555
5656 Parameters:
5757 :param connection: The parent connection that was used to execute this command
58- :param backend: The backend specialised backend client to be invoked in the fetch phase
58+ :param backend: The specialised backend client to be invoked in the fetch phase
5959 :param arraysize: The max number of rows to fetch at a time (PEP-249)
6060 :param buffer_size_bytes: The size (in bytes) of the internal buffer + max fetch
6161 :param command_id: The command ID
@@ -334,7 +334,7 @@ def fetchmany_arrow(self, size: int) -> "pyarrow.Table":
334334 n_remaining_rows -= partial_results .num_rows
335335 self ._next_row_index += partial_results .num_rows
336336
337- return pyarrow .concat_tables (partial_result_chunks )
337+ return pyarrow .concat_tables (partial_result_chunks , use_threads = True )
338338
339339 def fetchmany_columnar (self , size : int ):
340340 """
@@ -385,7 +385,7 @@ def fetchall_arrow(self) -> "pyarrow.Table":
385385 for name , col in zip (results .column_names , results .column_table )
386386 }
387387 return pyarrow .Table .from_pydict (data )
388- return pyarrow .concat_tables (partial_result_chunks )
388+ return pyarrow .concat_tables (partial_result_chunks , use_threads = True )
389389
390390 def fetchall_columnar (self ):
391391 """Fetch all (remaining) rows of a query result, returning them as a Columnar table."""
0 commit comments