allisonwang-db commented on code in PR #42027:
URL: https://github.com/apache/spark/pull/42027#discussion_r1265949390


##########
python/pyspark/sql/tests/test_utils.py:
##########
@@ -648,17 +649,25 @@ def test_assert_error_pandas_df(self):
 
         self.check_error(
             exception=pe.exception,
-            error_class="UNSUPPORTED_DATA_TYPE",
-            message_parameters={"data_type": pd.DataFrame},
+            error_class="INVALID_TYPE_DF_EQUALITY_ARG",
+            message_parameters={
+                "expected_type": DataFrame,
+                "arg_name": "df",
+                "actual_type": pd.DataFrame,

Review Comment:
   Just curious, what will the error message look like in this case? Is it 
clear that the method expects a pyspark dataframe instead of a pandas dataframe?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to