HeartSaVioR commented on code in PR #57259:
URL: https://github.com/apache/spark/pull/57259#discussion_r3612685332


##########
sql/core/src/test/scala/org/apache/spark/sql/streaming/StreamTest.scala:
##########
@@ -712,9 +714,15 @@ trait StreamTest extends SharedSparkSession with 
TimeLimits {
               s"incorrect exception returned by query.exception()")
 
             val exception = currentStream.exception.get
-            verify(exception.cause.getClass === ef.causeClass,
-              "incorrect cause in exception returned by query.exception()\n" +
-                s"\tExpected: ${ef.causeClass}\n\tReturned: 
${exception.cause.getClass}")
+            if (ef.typeIsSuperClass) {

Review Comment:
   nit: If this is needed, is there a chance we need this in L730 as well? I 
know there is no caller in this PR, but just think out loud while we are here, 
since we got the parameter but have a path which do not respect the parameter.



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