HeartSaVioR commented on a change in pull request #25911:
[SPARK-29223][SQL][SS] Enable global timestamp per topic while specifying
offset by timestamp in Kafka source
URL: https://github.com/apache/spark/pull/25911#discussion_r327464335
##########
File path:
external/kafka-0-10-sql/src/test/scala/org/apache/spark/sql/kafka010/KafkaRelationSuite.scala
##########
@@ -284,19 +302,40 @@ abstract class KafkaRelationSuiteBase extends QueryTest
with SharedSparkSession
}, topic, Seq.empty)
}
- @tailrec
- def assertionErrorInExceptionChain(e: Throwable): Boolean = {
- if (e.isInstanceOf[AssertionError]) {
- true
- } else if (e.getCause == null) {
- false
- } else {
- assertionErrorInExceptionChain(e.getCause)
- }
+ assert(findAssertionErrorInExceptionChain(e).isDefined,
+ "Cannot find expected AssertionError in chained exceptions")
+ }
+
+ test("specifying both global timestamp and specific timestamp for
partition") {
Review comment:
This test verifies the new configuration error.
----------------------------------------------------------------
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]