We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 33a7d1b commit 8c603f4Copy full SHA for 8c603f4
sql/core/src/test/scala/org/apache/spark/sql/streaming/EventTimeWatermarkSuite.scala
@@ -53,13 +53,15 @@ class EventTimeWatermarkSuite extends StreamTest with BeforeAndAfter with Loggin
53
assert(e.getMessage contains "int")
54
}
55
56
- test("error on threshold in months/years") {
+ test("error on delay in months/years") {
57
val inputData = MemoryStream[Int].toDF()
58
59
def check(delayThreshold: String): Unit = {
60
val e = intercept[AnalysisException] {
61
inputData.withWatermark("value", delayThreshold)
62
63
+ assert(e.getMessage.contains("month"))
64
+ assert(e.getMessage.contains("year"))
65
66
check("1 year")
67
check("2 months")
0 commit comments