zhangshenghang commented on code in PR #10145:
URL: https://github.com/apache/seatunnel/pull/10145#discussion_r2649575072
##########
seatunnel-transforms-v2/src/main/java/org/apache/seatunnel/transform/sql/zeta/functions/ArrayFunction.java:
##########
@@ -52,9 +54,11 @@ public static Object arrayMax(List<Object> args) {
.max(Comparator.comparingDouble(Number::doubleValue))
.orElse(null);
}
- throw new TransformException(
- CommonErrorCode.UNSUPPORTED_DATA_TYPE,
- String.format("Unsupported function max() arguments: %s",
args));
+ Map<String, String> params = new HashMap<>();
+ params.put("identifier", "ArrayFunction");
+ params.put("dataType", dataList[0].getClass().getName());
Review Comment:
If dataList[0] is null, there will be a problem here and needs to be handled.
--
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]