gustavodemorais commented on code in PR #26113:
URL: https://github.com/apache/flink/pull/26113#discussion_r1957124916
##########
flink-table/flink-table-planner/src/test/scala/org/apache/flink/table/planner/runtime/batch/sql/UnnestITCase.scala:
##########
@@ -315,4 +315,279 @@ class UnnestITCase extends BatchTestBase {
Seq(row('a', 1), row('a', 2), row('a', 3)))
}
+ @Test
+ def testUnnestWithOrdinalityWithValuesStream(): Unit = {
+ checkResult(
+ "SELECT * FROM (VALUES('a')) CROSS JOIN UNNEST(ARRAY[1, 2, 3]) WITH
ORDINALITY",
+ Seq(row('a', 1, 1), row('a', 2, 2), row('a', 3, 3))
+ )
+ }
+
+ @Test
+ def testUnnestArrayWithOrdinality(): Unit = {
+ val data = List(
+ row(1, Array(12, 45)),
+ row(2, Array(41, 5)),
+ row(3, Array(18, 42))
+ )
+ registerCollection(
+ "T",
+ data,
+ new RowTypeInfo(Types.INT, Types.PRIMITIVE_ARRAY(Types.INT)),
Review Comment:
I don't think so. They all take TypeInformation[T] as a param unfortunately
--
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]