Skip to content

Commit b881ab0

Browse files
call correct method in test_fall_back_to_hive_schema
Signed-off-by: varun-edachali-dbx <varun.edachali@databricks.com>
1 parent 5ee4136 commit b881ab0

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

tests/unit/test_thrift_backend.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -965,7 +965,6 @@ def test_use_arrow_schema_if_available(self, tcli_service_class):
965965

966966
thrift_backend = self._create_thrift_client()
967967

968-
# Call the real _results_message_to_execute_response method
969968
execute_response, _ = thrift_backend._handle_execute_response(
970969
t_execute_resp, Mock()
971970
)
@@ -1000,10 +999,7 @@ def test_fall_back_to_hive_schema_if_no_arrow_schema(self, tcli_service_class):
1000999
thrift_backend = self._create_thrift_client()
10011000
thrift_backend._hive_schema_to_arrow_schema = Mock()
10021001

1003-
# Call the real _results_message_to_execute_response method
1004-
thrift_backend._results_message_to_execute_response(
1005-
t_execute_resp, ttypes.TOperationState.FINISHED_STATE
1006-
)
1002+
thrift_backend._handle_execute_response(t_execute_resp, Mock())
10071003

10081004
self.assertEqual(
10091005
hive_schema_mock,

0 commit comments

Comments
 (0)