@@ -821,14 +821,17 @@ def _results_message_to_execute_response(self, resp, operation_state):
821821 command_id = command_id ,
822822 status = status ,
823823 description = description ,
824- has_been_closed_server_side = has_been_closed_server_side ,
825824 lz4_compressed = lz4_compressed ,
826825 is_staging_operation = t_result_set_metadata_resp .isStagingOperation ,
827- arrow_schema_bytes = schema_bytes ,
828826 result_format = t_result_set_metadata_resp .resultFormat ,
829827 )
830828
831- return execute_response , is_direct_results
829+ return (
830+ execute_response ,
831+ is_direct_results ,
832+ has_been_closed_server_side ,
833+ schema_bytes ,
834+ )
832835
833836 def get_execution_result (
834837 self , command_id : CommandId , cursor : "Cursor"
@@ -881,10 +884,8 @@ def get_execution_result(
881884 command_id = command_id ,
882885 status = status ,
883886 description = description ,
884- has_been_closed_server_side = False ,
885887 lz4_compressed = lz4_compressed ,
886888 is_staging_operation = is_staging_operation ,
887- arrow_schema_bytes = schema_bytes ,
888889 result_format = t_result_set_metadata_resp .resultFormat ,
889890 )
890891
@@ -898,6 +899,8 @@ def get_execution_result(
898899 max_download_threads = self .max_download_threads ,
899900 ssl_options = self ._ssl_options ,
900901 is_direct_results = is_direct_results ,
902+ arrow_schema_bytes = schema_bytes ,
903+ has_been_closed_server_side = False ,
901904 )
902905
903906 def _wait_until_command_done (self , op_handle , initial_operation_status_resp ):
@@ -1016,9 +1019,12 @@ def execute_command(
10161019 self ._handle_execute_response_async (resp , cursor )
10171020 return None
10181021 else :
1019- execute_response , is_direct_results = self ._handle_execute_response (
1020- resp , cursor
1021- )
1022+ (
1023+ execute_response ,
1024+ is_direct_results ,
1025+ has_been_closed_server_side ,
1026+ schema_bytes ,
1027+ ) = self ._handle_execute_response (resp , cursor )
10221028
10231029 t_row_set = None
10241030 if resp .directResults and resp .directResults .resultSet :
@@ -1034,6 +1040,8 @@ def execute_command(
10341040 max_download_threads = self .max_download_threads ,
10351041 ssl_options = self ._ssl_options ,
10361042 is_direct_results = is_direct_results ,
1043+ has_been_closed_server_side = has_been_closed_server_side ,
1044+ arrow_schema_bytes = schema_bytes ,
10371045 )
10381046
10391047 def get_catalogs (
@@ -1055,9 +1063,12 @@ def get_catalogs(
10551063 )
10561064 resp = self .make_request (self ._client .GetCatalogs , req )
10571065
1058- execute_response , is_direct_results = self ._handle_execute_response (
1059- resp , cursor
1060- )
1066+ (
1067+ execute_response ,
1068+ is_direct_results ,
1069+ has_been_closed_server_side ,
1070+ schema_bytes ,
1071+ ) = self ._handle_execute_response (resp , cursor )
10611072
10621073 t_row_set = None
10631074 if resp .directResults and resp .directResults .resultSet :
@@ -1073,6 +1084,8 @@ def get_catalogs(
10731084 max_download_threads = self .max_download_threads ,
10741085 ssl_options = self ._ssl_options ,
10751086 is_direct_results = is_direct_results ,
1087+ has_been_closed_server_side = has_been_closed_server_side ,
1088+ arrow_schema_bytes = schema_bytes ,
10761089 )
10771090
10781091 def get_schemas (
@@ -1100,9 +1113,12 @@ def get_schemas(
11001113 )
11011114 resp = self .make_request (self ._client .GetSchemas , req )
11021115
1103- execute_response , is_direct_results = self ._handle_execute_response (
1104- resp , cursor
1105- )
1116+ (
1117+ execute_response ,
1118+ is_direct_results ,
1119+ has_been_closed_server_side ,
1120+ schema_bytes ,
1121+ ) = self ._handle_execute_response (resp , cursor )
11061122
11071123 t_row_set = None
11081124 if resp .directResults and resp .directResults .resultSet :
@@ -1118,6 +1134,8 @@ def get_schemas(
11181134 max_download_threads = self .max_download_threads ,
11191135 ssl_options = self ._ssl_options ,
11201136 is_direct_results = is_direct_results ,
1137+ has_been_closed_server_side = has_been_closed_server_side ,
1138+ arrow_schema_bytes = schema_bytes ,
11211139 )
11221140
11231141 def get_tables (
@@ -1149,9 +1167,12 @@ def get_tables(
11491167 )
11501168 resp = self .make_request (self ._client .GetTables , req )
11511169
1152- execute_response , is_direct_results = self ._handle_execute_response (
1153- resp , cursor
1154- )
1170+ (
1171+ execute_response ,
1172+ is_direct_results ,
1173+ has_been_closed_server_side ,
1174+ schema_bytes ,
1175+ ) = self ._handle_execute_response (resp , cursor )
11551176
11561177 t_row_set = None
11571178 if resp .directResults and resp .directResults .resultSet :
@@ -1167,6 +1188,8 @@ def get_tables(
11671188 max_download_threads = self .max_download_threads ,
11681189 ssl_options = self ._ssl_options ,
11691190 is_direct_results = is_direct_results ,
1191+ has_been_closed_server_side = has_been_closed_server_side ,
1192+ arrow_schema_bytes = schema_bytes ,
11701193 )
11711194
11721195 def get_columns (
@@ -1198,9 +1221,12 @@ def get_columns(
11981221 )
11991222 resp = self .make_request (self ._client .GetColumns , req )
12001223
1201- execute_response , is_direct_results = self ._handle_execute_response (
1202- resp , cursor
1203- )
1224+ (
1225+ execute_response ,
1226+ is_direct_results ,
1227+ has_been_closed_server_side ,
1228+ schema_bytes ,
1229+ ) = self ._handle_execute_response (resp , cursor )
12041230
12051231 t_row_set = None
12061232 if resp .directResults and resp .directResults .resultSet :
@@ -1216,6 +1242,8 @@ def get_columns(
12161242 max_download_threads = self .max_download_threads ,
12171243 ssl_options = self ._ssl_options ,
12181244 is_direct_results = is_direct_results ,
1245+ has_been_closed_server_side = has_been_closed_server_side ,
1246+ arrow_schema_bytes = schema_bytes ,
12191247 )
12201248
12211249 def _handle_execute_response (self , resp , cursor ):
0 commit comments