wangyum commented on a change in pull request #26768: [SPARK-30141][SQL][TESTS]
Fix QueryTest.checkAnswer usage
URL: https://github.com/apache/spark/pull/26768#discussion_r354638073
##########
File path:
sql/core/src/test/scala/org/apache/spark/sql/streaming/StreamSuite.scala
##########
@@ -757,7 +757,10 @@ class StreamSuite extends StreamTest {
QueryTest.checkAnswer(spark.table("counts").toDF(),
Row("1", 1) :: Row("2", 1) :: Row("3", 2) :: Row("4", 2) ::
- Row("5", 2) :: Row("6", 2) :: Row("7", 1) :: Row("8", 1) :: Row("9",
1) :: Nil)
+ Row("5", 2) :: Row("6", 2) :: Row("7", 1) :: Row("8", 1) :: Row("9",
1) :: Nil) match {
+ case Some(errorMessage) => fail(errorMessage)
+ case None =>
+ }
Review comment:
Before this PR. it will not fail.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]