Skip to content

Commit 8c603f4

Browse files
committed
Minor
1 parent 33a7d1b commit 8c603f4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

sql/core/src/test/scala/org/apache/spark/sql/streaming/EventTimeWatermarkSuite.scala

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,15 @@ class EventTimeWatermarkSuite extends StreamTest with BeforeAndAfter with Loggin
5353
assert(e.getMessage contains "int")
5454
}
5555

56-
test("error on threshold in months/years") {
56+
test("error on delay in months/years") {
5757
val inputData = MemoryStream[Int].toDF()
5858

5959
def check(delayThreshold: String): Unit = {
6060
val e = intercept[AnalysisException] {
6161
inputData.withWatermark("value", delayThreshold)
6262
}
63+
assert(e.getMessage.contains("month"))
64+
assert(e.getMessage.contains("year"))
6365
}
6466
check("1 year")
6567
check("2 months")

0 commit comments

Comments
 (0)