dawidwys commented on PR #22917:
URL: https://github.com/apache/flink/pull/22917#issuecomment-1618315195
Could we add a test case for the empty array in `CollectionFunctionsITCase`?
We can do that via a UDF.
```
public static class CreateEmptyArray extends ScalarFunction {
public @DataTypeHint("ARRAY<INT NOT NULL>") int[] eval() {
return new int[]{};
}
}
.withFunction(CreateEmptyArray.class)
.testResult(call("CreateEmptyArray").arrayMax(),
"ARRAY_MAX(CreateEmptyArray())", null, DataTypes.INT())
```
--
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]