@@ -649,7 +649,7 @@ def test_handle_execute_response_sets_compression_in_direct_results(
649649 ssl_options = SSLOptions (),
650650 )
651651
652- execute_response , _ = thrift_backend ._handle_execute_response (
652+ execute_response , _ , _ , _ = thrift_backend ._handle_execute_response (
653653 t_execute_resp , Mock ()
654654 )
655655 self .assertEqual (execute_response .lz4_compressed , lz4Compressed )
@@ -892,6 +892,8 @@ def test_handle_execute_response_can_handle_without_direct_results(
892892 (
893893 execute_response ,
894894 _ ,
895+ _ ,
896+ _
895897 ) = thrift_backend ._handle_execute_response (execute_resp , Mock ())
896898 self .assertEqual (
897899 execute_response .status ,
@@ -965,11 +967,11 @@ def test_use_arrow_schema_if_available(self, tcli_service_class):
965967 )
966968 )
967969 thrift_backend = self ._make_fake_thrift_backend ()
968- execute_response , _ = thrift_backend ._handle_execute_response (
970+ execute_response , _ , _ , arrow_schema_bytes = thrift_backend ._handle_execute_response (
969971 t_execute_resp , Mock ()
970972 )
971973
972- self .assertEqual (execute_response . arrow_schema_bytes , arrow_schema_mock )
974+ self .assertEqual (arrow_schema_bytes , arrow_schema_mock )
973975
974976 @patch ("databricks.sql.backend.thrift_backend.TCLIService.Client" , autospec = True )
975977 def test_fall_back_to_hive_schema_if_no_arrow_schema (self , tcli_service_class ):
@@ -997,7 +999,7 @@ def test_fall_back_to_hive_schema_if_no_arrow_schema(self, tcli_service_class):
997999 )
9981000 )
9991001 thrift_backend = self ._make_fake_thrift_backend ()
1000- _ , _ = thrift_backend ._handle_execute_response (t_execute_resp , Mock ())
1002+ _ , _ , _ , _ = thrift_backend ._handle_execute_response (t_execute_resp , Mock ())
10011003
10021004 self .assertEqual (
10031005 hive_schema_mock ,
@@ -1046,6 +1048,8 @@ def test_handle_execute_response_reads_has_more_rows_in_direct_results(
10461048 (
10471049 execute_response ,
10481050 has_more_rows_result ,
1051+ _ ,
1052+ _
10491053 ) = thrift_backend ._handle_execute_response (execute_resp , Mock ())
10501054
10511055 self .assertEqual (is_direct_results , has_more_rows_result )
@@ -1179,7 +1183,7 @@ def test_execute_statement_calls_client_and_handle_execute_response(
11791183 ssl_options = SSLOptions (),
11801184 )
11811185 thrift_backend ._handle_execute_response = Mock ()
1182- thrift_backend ._handle_execute_response .return_value = (Mock (), Mock ())
1186+ thrift_backend ._handle_execute_response .return_value = (Mock (), Mock (), Mock (), Mock () )
11831187 cursor_mock = Mock ()
11841188
11851189 result = thrift_backend .execute_command (
@@ -1215,7 +1219,7 @@ def test_get_catalogs_calls_client_and_handle_execute_response(
12151219 ssl_options = SSLOptions (),
12161220 )
12171221 thrift_backend ._handle_execute_response = Mock ()
1218- thrift_backend ._handle_execute_response .return_value = (Mock (), Mock ())
1222+ thrift_backend ._handle_execute_response .return_value = (Mock (), Mock (), Mock (), Mock () )
12191223 cursor_mock = Mock ()
12201224
12211225 result = thrift_backend .get_catalogs (Mock (), 100 , 200 , cursor_mock )
@@ -1248,7 +1252,7 @@ def test_get_schemas_calls_client_and_handle_execute_response(
12481252 ssl_options = SSLOptions (),
12491253 )
12501254 thrift_backend ._handle_execute_response = Mock ()
1251- thrift_backend ._handle_execute_response .return_value = (Mock (), Mock ())
1255+ thrift_backend ._handle_execute_response .return_value = (Mock (), Mock (), Mock (), Mock () )
12521256 cursor_mock = Mock ()
12531257
12541258 result = thrift_backend .get_schemas (
@@ -1290,7 +1294,7 @@ def test_get_tables_calls_client_and_handle_execute_response(
12901294 ssl_options = SSLOptions (),
12911295 )
12921296 thrift_backend ._handle_execute_response = Mock ()
1293- thrift_backend ._handle_execute_response .return_value = (Mock (), Mock ())
1297+ thrift_backend ._handle_execute_response .return_value = (Mock (), Mock (), Mock (), Mock () )
12941298 cursor_mock = Mock ()
12951299
12961300 result = thrift_backend .get_tables (
@@ -1336,7 +1340,7 @@ def test_get_columns_calls_client_and_handle_execute_response(
13361340 ssl_options = SSLOptions (),
13371341 )
13381342 thrift_backend ._handle_execute_response = Mock ()
1339- thrift_backend ._handle_execute_response .return_value = (Mock (), Mock ())
1343+ thrift_backend ._handle_execute_response .return_value = (Mock (), Mock (), Mock (), Mock () )
13401344 cursor_mock = Mock ()
13411345
13421346 result = thrift_backend .get_columns (
@@ -2254,6 +2258,8 @@ def test_execute_command_sets_complex_type_fields_correctly(
22542258 mock_handle_execute_response .return_value = (
22552259 mock_execute_response ,
22562260 mock_arrow_schema ,
2261+ Mock (),
2262+ Mock ()
22572263 )
22582264
22592265 # Iterate through each possible combination of native types (True, False and unset)
0 commit comments