snuyanzin commented on code in PR #22717: URL: https://github.com/apache/flink/pull/22717#discussion_r1228696955
########## flink-table/flink-table-planner/src/test/java/org/apache/flink/table/planner/functions/CollectionFunctionsITCase.java: ########## @@ -479,4 +480,82 @@ private Stream<TestSetSpec> arrayUnionTestCases() { "Invalid input arguments. Expected signatures are:\n" + "ARRAY_UNION(<COMMON>, <COMMON>)")); } + + private Stream<TestSetSpec> arrayConcatTestCases() { + return Stream.of( + TestSetSpec.forFunction(BuiltInFunctionDefinitions.ARRAY_CONCAT) + .onFieldsWithData( + new Integer[] {1, 2, null}, + null, + new Row[] { + Row.of(true, LocalDate.of(2022, 4, 20)), + Row.of(true, LocalDate.of(1990, 10, 14)), + null + }, + 1, + new Integer[][] {{1}}, + new String[] {"123"}) + .andDataTypes( + DataTypes.ARRAY(DataTypes.INT()), + DataTypes.ARRAY(DataTypes.INT()), + DataTypes.ARRAY( + DataTypes.ROW(DataTypes.BOOLEAN(), DataTypes.DATE())), + DataTypes.INT(), Review Comment: I didn't get why this type `DataTypes.ARRAY(DataTypes.INT())` if it does not contain nulls? it should be something like `DataTypes.ARRAY(DataTypes.INT().notNull()).notNull()` similar notes about other types -- 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