ocean-zhc commented on code in PR #9299:
URL: https://github.com/apache/seatunnel/pull/9299#discussion_r2094704163
##########
seatunnel-transforms-v2/src/main/java/org/apache/seatunnel/transform/sql/zeta/ZetaSQLType.java:
##########
@@ -492,7 +492,21 @@ private SeaTunnelDataType<?> getFunctionType(Function
function) {
case ZetaSQLFunction.COALESCE:
case ZetaSQLFunction.IFNULL:
// Result has the same type as first argument
- return
getExpressionType(function.getParameters().getExpressions().get(0));
+ if
(function.getName().equalsIgnoreCase(ZetaSQLFunction.COALESCE)) {
Review Comment:
Because the COALESCE function does a separate first argument non-null
handling
--
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]