@@ -505,7 +505,7 @@ def __init__(
505
505
arrow_schema_bytes = execute_response .arrow_schema_bytes or b"" ,
506
506
)
507
507
508
- def _convert_json_to_arrow (self , rows : List ) -> "pyarrow.Table" :
508
+ def _convert_json_to_arrow (self , rows : List [ List ] ) -> "pyarrow.Table" :
509
509
"""
510
510
Convert raw data rows to Arrow table.
511
511
"""
@@ -519,7 +519,7 @@ def _convert_json_to_arrow(self, rows: List) -> "pyarrow.Table":
519
519
names = [col [0 ] for col in self .description ]
520
520
return pyarrow .Table .from_arrays (columns , names = names )
521
521
522
- def _convert_json_types (self , rows : List ) -> List :
522
+ def _convert_json_types (self , rows : List [ List ] ) -> List [ List ] :
523
523
"""
524
524
Convert raw data rows to Row objects with named columns based on description.
525
525
Also converts string values to appropriate Python types based on column metadata.
@@ -554,7 +554,7 @@ def _convert_json_types(self, rows: List) -> List:
554
554
555
555
return converted_rows
556
556
557
- def _create_json_table (self , rows : List ) -> List [Row ]:
557
+ def _create_json_table (self , rows : List [ List ] ) -> List [Row ]:
558
558
"""
559
559
Convert raw data rows to Row objects with named columns based on description.
560
560
Also converts string values to appropriate Python types based on column metadata.
@@ -573,7 +573,7 @@ def _create_json_table(self, rows: List) -> List[Row]:
573
573
574
574
return [ResultRow (* row ) for row in rows ]
575
575
576
- def fetchmany_json (self , size : int ) -> List :
576
+ def fetchmany_json (self , size : int ) -> List [ List ] :
577
577
"""
578
578
Fetch the next set of rows as a columnar table.
579
579
@@ -595,7 +595,7 @@ def fetchmany_json(self, size: int) -> List:
595
595
596
596
return results
597
597
598
- def fetchall_json (self ) -> List :
598
+ def fetchall_json (self ) -> List [ List ] :
599
599
"""
600
600
Fetch all remaining rows as a columnar table.
601
601
0 commit comments