@@ -758,7 +758,7 @@ def _results_message_to_execute_response(self, resp, operation_state):
758758 direct_results = resp .directResults
759759 has_been_closed_server_side = direct_results and direct_results .closeOperation
760760
761- has_more_rows = (
761+ is_direct_results = (
762762 (not direct_results )
763763 or (not direct_results .resultSet )
764764 or direct_results .resultSet .hasMoreRows
@@ -796,7 +796,7 @@ def _results_message_to_execute_response(self, resp, operation_state):
796796 result_format = t_result_set_metadata_resp .resultFormat ,
797797 )
798798
799- return execute_response , has_more_rows
799+ return execute_response , is_direct_results
800800
801801 def get_execution_result (
802802 self , command_id : CommandId , cursor : "Cursor"
@@ -838,7 +838,7 @@ def get_execution_result(
838838
839839 lz4_compressed = t_result_set_metadata_resp .lz4Compressed
840840 is_staging_operation = t_result_set_metadata_resp .isStagingOperation
841- has_more_rows = resp .hasMoreRows
841+ is_direct_results = resp .hasMoreRows
842842
843843 status = self .get_query_state (command_id )
844844
@@ -863,7 +863,7 @@ def get_execution_result(
863863 t_row_set = resp .results ,
864864 max_download_threads = self .max_download_threads ,
865865 ssl_options = self ._ssl_options ,
866- has_more_rows = has_more_rows ,
866+ is_direct_results = is_direct_results ,
867867 )
868868
869869 def _wait_until_command_done (self , op_handle , initial_operation_status_resp ):
@@ -976,7 +976,7 @@ def execute_command(
976976 self ._handle_execute_response_async (resp , cursor )
977977 return None
978978 else :
979- execute_response , has_more_rows = self ._handle_execute_response (
979+ execute_response , is_direct_results = self ._handle_execute_response (
980980 resp , cursor
981981 )
982982
@@ -994,7 +994,7 @@ def execute_command(
994994 t_row_set = t_row_set ,
995995 max_download_threads = self .max_download_threads ,
996996 ssl_options = self ._ssl_options ,
997- has_more_rows = has_more_rows ,
997+ is_direct_results = is_direct_results ,
998998 )
999999
10001000 def get_catalogs (
@@ -1016,7 +1016,9 @@ def get_catalogs(
10161016 )
10171017 resp = self .make_request (self ._client .GetCatalogs , req )
10181018
1019- execute_response , has_more_rows = self ._handle_execute_response (resp , cursor )
1019+ execute_response , is_direct_results = self ._handle_execute_response (
1020+ resp , cursor
1021+ )
10201022
10211023 t_row_set = None
10221024 if resp .directResults and resp .directResults .resultSet :
@@ -1032,7 +1034,7 @@ def get_catalogs(
10321034 t_row_set = t_row_set ,
10331035 max_download_threads = self .max_download_threads ,
10341036 ssl_options = self ._ssl_options ,
1035- has_more_rows = has_more_rows ,
1037+ is_direct_results = is_direct_results ,
10361038 )
10371039
10381040 def get_schemas (
@@ -1058,7 +1060,9 @@ def get_schemas(
10581060 )
10591061 resp = self .make_request (self ._client .GetSchemas , req )
10601062
1061- execute_response , has_more_rows = self ._handle_execute_response (resp , cursor )
1063+ execute_response , is_direct_results = self ._handle_execute_response (
1064+ resp , cursor
1065+ )
10621066
10631067 t_row_set = None
10641068 if resp .directResults and resp .directResults .resultSet :
@@ -1074,7 +1078,7 @@ def get_schemas(
10741078 t_row_set = t_row_set ,
10751079 max_download_threads = self .max_download_threads ,
10761080 ssl_options = self ._ssl_options ,
1077- has_more_rows = has_more_rows ,
1081+ is_direct_results = is_direct_results ,
10781082 )
10791083
10801084 def get_tables (
@@ -1104,7 +1108,9 @@ def get_tables(
11041108 )
11051109 resp = self .make_request (self ._client .GetTables , req )
11061110
1107- execute_response , has_more_rows = self ._handle_execute_response (resp , cursor )
1111+ execute_response , is_direct_results = self ._handle_execute_response (
1112+ resp , cursor
1113+ )
11081114
11091115 t_row_set = None
11101116 if resp .directResults and resp .directResults .resultSet :
@@ -1120,7 +1126,7 @@ def get_tables(
11201126 t_row_set = t_row_set ,
11211127 max_download_threads = self .max_download_threads ,
11221128 ssl_options = self ._ssl_options ,
1123- has_more_rows = has_more_rows ,
1129+ is_direct_results = is_direct_results ,
11241130 )
11251131
11261132 def get_columns (
@@ -1150,7 +1156,9 @@ def get_columns(
11501156 )
11511157 resp = self .make_request (self ._client .GetColumns , req )
11521158
1153- execute_response , has_more_rows = self ._handle_execute_response (resp , cursor )
1159+ execute_response , is_direct_results = self ._handle_execute_response (
1160+ resp , cursor
1161+ )
11541162
11551163 t_row_set = None
11561164 if resp .directResults and resp .directResults .resultSet :
@@ -1166,7 +1174,7 @@ def get_columns(
11661174 t_row_set = t_row_set ,
11671175 max_download_threads = self .max_download_threads ,
11681176 ssl_options = self ._ssl_options ,
1169- has_more_rows = has_more_rows ,
1177+ is_direct_results = is_direct_results ,
11701178 )
11711179
11721180 def _handle_execute_response (self , resp , cursor ):
0 commit comments