@@ -790,7 +790,7 @@ def _results_message_to_execute_response(self, resp, operation_state):
790790 direct_results = resp .directResults
791791 has_been_closed_server_side = direct_results and direct_results .closeOperation
792792
793- has_more_rows = (
793+ is_direct_results = (
794794 (not direct_results )
795795 or (not direct_results .resultSet )
796796 or direct_results .resultSet .hasMoreRows
@@ -831,7 +831,7 @@ def _results_message_to_execute_response(self, resp, operation_state):
831831 result_format = t_result_set_metadata_resp .resultFormat ,
832832 )
833833
834- return execute_response , has_more_rows
834+ return execute_response , is_direct_results
835835
836836 def get_execution_result (
837837 self , command_id : CommandId , cursor : Cursor
@@ -876,7 +876,7 @@ def get_execution_result(
876876
877877 lz4_compressed = t_result_set_metadata_resp .lz4Compressed
878878 is_staging_operation = t_result_set_metadata_resp .isStagingOperation
879- has_more_rows = resp .hasMoreRows
879+ is_direct_results = resp .hasMoreRows
880880
881881 status = CommandState .from_thrift_state (resp .status ) or CommandState .RUNNING
882882
@@ -902,7 +902,7 @@ def get_execution_result(
902902 t_row_set = resp .results ,
903903 max_download_threads = self .max_download_threads ,
904904 ssl_options = self ._ssl_options ,
905- has_more_rows = has_more_rows ,
905+ is_direct_results = is_direct_results ,
906906 )
907907
908908 def _wait_until_command_done (self , op_handle , initial_operation_status_resp ):
@@ -1021,7 +1021,7 @@ def execute_command(
10211021 self ._handle_execute_response_async (resp , cursor )
10221022 return None
10231023 else :
1024- execute_response , has_more_rows = self ._handle_execute_response (
1024+ execute_response , is_direct_results = self ._handle_execute_response (
10251025 resp , cursor
10261026 )
10271027
@@ -1039,7 +1039,7 @@ def execute_command(
10391039 t_row_set = t_row_set ,
10401040 max_download_threads = self .max_download_threads ,
10411041 ssl_options = self ._ssl_options ,
1042- has_more_rows = has_more_rows ,
1042+ is_direct_results = is_direct_results ,
10431043 session_id_hex = self ._session_id_hex ,
10441044 )
10451045
@@ -1062,7 +1062,9 @@ def get_catalogs(
10621062 )
10631063 resp = self .make_request (self ._client .GetCatalogs , req )
10641064
1065- execute_response , has_more_rows = self ._handle_execute_response (resp , cursor )
1065+ execute_response , is_direct_results = self ._handle_execute_response (
1066+ resp , cursor
1067+ )
10661068
10671069 t_row_set = None
10681070 if resp .directResults and resp .directResults .resultSet :
@@ -1078,7 +1080,7 @@ def get_catalogs(
10781080 t_row_set = t_row_set ,
10791081 max_download_threads = self .max_download_threads ,
10801082 ssl_options = self ._ssl_options ,
1081- has_more_rows = has_more_rows ,
1083+ is_direct_results = is_direct_results ,
10821084 session_id_hex = self ._session_id_hex ,
10831085 )
10841086
@@ -1107,7 +1109,9 @@ def get_schemas(
11071109 )
11081110 resp = self .make_request (self ._client .GetSchemas , req )
11091111
1110- execute_response , has_more_rows = self ._handle_execute_response (resp , cursor )
1112+ execute_response , is_direct_results = self ._handle_execute_response (
1113+ resp , cursor
1114+ )
11111115
11121116 t_row_set = None
11131117 if resp .directResults and resp .directResults .resultSet :
@@ -1123,7 +1127,7 @@ def get_schemas(
11231127 t_row_set = t_row_set ,
11241128 max_download_threads = self .max_download_threads ,
11251129 ssl_options = self ._ssl_options ,
1126- has_more_rows = has_more_rows ,
1130+ is_direct_results = is_direct_results ,
11271131 session_id_hex = self ._session_id_hex ,
11281132 )
11291133
@@ -1156,7 +1160,9 @@ def get_tables(
11561160 )
11571161 resp = self .make_request (self ._client .GetTables , req )
11581162
1159- execute_response , has_more_rows = self ._handle_execute_response (resp , cursor )
1163+ execute_response , is_direct_results = self ._handle_execute_response (
1164+ resp , cursor
1165+ )
11601166
11611167 t_row_set = None
11621168 if resp .directResults and resp .directResults .resultSet :
@@ -1172,7 +1178,7 @@ def get_tables(
11721178 t_row_set = t_row_set ,
11731179 max_download_threads = self .max_download_threads ,
11741180 ssl_options = self ._ssl_options ,
1175- has_more_rows = has_more_rows ,
1181+ is_direct_results = is_direct_results ,
11761182 session_id_hex = self ._session_id_hex ,
11771183 )
11781184
@@ -1205,7 +1211,9 @@ def get_columns(
12051211 )
12061212 resp = self .make_request (self ._client .GetColumns , req )
12071213
1208- execute_response , has_more_rows = self ._handle_execute_response (resp , cursor )
1214+ execute_response , is_direct_results = self ._handle_execute_response (
1215+ resp , cursor
1216+ )
12091217
12101218 t_row_set = None
12111219 if resp .directResults and resp .directResults .resultSet :
@@ -1221,7 +1229,7 @@ def get_columns(
12211229 t_row_set = t_row_set ,
12221230 max_download_threads = self .max_download_threads ,
12231231 ssl_options = self ._ssl_options ,
1224- has_more_rows = has_more_rows ,
1232+ is_direct_results = is_direct_results ,
12251233 session_id_hex = self ._session_id_hex ,
12261234 )
12271235
0 commit comments