snuyanzin commented on code in PR #26840: URL: https://github.com/apache/flink/pull/26840#discussion_r2240095348
########## flink-table/flink-table-planner/src/test/scala/org/apache/flink/table/planner/plan/stream/sql/agg/OverAggregateTest.scala: ########## @@ -480,4 +482,31 @@ class OverAggregateTest extends TableTestBase { util.verifyExecPlan(sql) } + @Test + def testWindowBoundaryNotNumeric(): Unit = { + val sql = + """ + |SELECT c, + | COUNT(a) OVER (PARTITION BY b ORDER BY proctime + | ROWS BETWEEN '2' PRECEDING AND CURRENT ROW) AS cnt1 + |FROM MyTable + """.stripMargin + + assertThatThrownBy(() => util.verifyExecPlan(sql)) + .hasRootCauseInstanceOf(classOf[ValidationException]) Review Comment: added -- 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: issues-unsubscr...@flink.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org