yzeng1618 commented on code in PR #10145:
URL: https://github.com/apache/seatunnel/pull/10145#discussion_r2587076698


##########
seatunnel-transforms-v2/src/main/java/org/apache/seatunnel/transform/sql/zeta/functions/StringFunction.java:
##########
@@ -231,6 +231,9 @@ public static String left(List<Object> args) {
             return null;

Review Comment:
   Actually, whitespace is a valid string value, not null. LEFT(' ', 2) should 
return ' ' (two spaces), following standard SQL behavior. Only when the input 
is NULL should we return NULL.



-- 
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]

Reply via email to