itholic commented on code in PR #42985:
URL: https://github.com/apache/spark/pull/42985#discussion_r1336491031


##########
python/pyspark/sql/tests/test_functions.py:
##########
@@ -1031,10 +1031,10 @@ def check_assert_true(self, tpe):
             [Row(val=None), Row(val=None), Row(val=None)],
         )
 
-        with self.assertRaisesRegex(tpe, "too big"):
+        with self.assertRaisesRegex(tpe, "\[USER_RAISED_EXCEPTION\] too big"):

Review Comment:
   ```suggestion
           with self.assertRaisesRegex(tpe, r"\[USER_RAISED_EXCEPTION\] too 
big"):
   ```



##########
python/pyspark/sql/tests/test_functions.py:
##########
@@ -1031,10 +1031,10 @@ def check_assert_true(self, tpe):
             [Row(val=None), Row(val=None), Row(val=None)],
         )
 
-        with self.assertRaisesRegex(tpe, "too big"):
+        with self.assertRaisesRegex(tpe, "\[USER_RAISED_EXCEPTION\] too big"):
             df.select(F.assert_true(df.id < 2, "too 
big")).toDF("val").collect()
 
-        with self.assertRaisesRegex(tpe, "2000000"):
+        with self.assertRaisesRegex(tpe, "\[USER_RAISED_EXCEPTION\] 
2000000.0"):

Review Comment:
   ```suggestion
           with self.assertRaisesRegex(tpe, r"\[USER_RAISED_EXCEPTION\] 
2000000.0"):
   ```



-- 
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