rionmonster commented on code in PR #30245:
URL: https://github.com/apache/flink/pull/30245#discussion_r4775171284
##########
flink-table/flink-table-planner/src/test/scala/org/apache/flink/table/planner/runtime/batch/sql/OverAggregateITCase.scala:
##########
@@ -312,6 +312,78 @@ class OverAggregateITCase extends BatchTestBase {
)
}
+ @Test
+ def testRankByTimestampLtz(): Unit = {
+ checkRankByKeys(
+ Seq(0, 3, 6, 9).map(p => s"CAST(TO_TIMESTAMP_LTZ(b, 3) AS
TIMESTAMP_LTZ($p))"): _*)
+ }
+
+ @Test
+ def testRankByBytesAndIntervals(): Unit = {
+ checkRankByKeys(
+ "CAST(CAST(b AS STRING) AS BYTES)",
+ "b * INTERVAL '1' SECOND",
+ "b * INTERVAL '1' MONTH")
+ }
+
+ @Test
+ def testRankByArrayAndRow(): Unit = {
+ checkRankByKeys("ARRAY[b]", "CAST(ROW(b, b) AS ROW<x INT, y INT>)")
Review Comment:
You're right. The NPE is fixed by the new guard in 75a72ce930c.
Additionally, the test's new home (`over-aggregate-batch-rank-array-and-row`)
runs on a single slot, so both partitions go through the same task. I double
checked this with a red/green run and it fails with the NPE without the guard
and passes with it.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]