comphead commented on code in PR #3377:
URL: https://github.com/apache/datafusion-comet/pull/3377#discussion_r2770104258


##########
spark/src/test/scala/org/apache/comet/CometSqlFileTestSuite.scala:
##########
@@ -96,6 +96,20 @@ class CometSqlFileTestSuite extends CometTestBase with 
AdaptiveSparkPlanHelper {
                 checkSparkAnswerAndFallbackReason(sql, reason)
               case Ignore(reason) =>
                 logInfo(s"IGNORED query (${reason}): $sql")
+              case ExpectError(pattern) =>
+                val (sparkError, cometError) = 
checkSparkAnswerMaybeThrows(spark.sql(sql))
+                assert(
+                  sparkError.isDefined,
+                  s"Expected Spark to throw an error matching '$pattern' but 
query succeeded")
+                assert(

Review Comment:
   So if cometError returned it also means sparkError returned? 🤔 
   



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