ILuffZhe commented on code in PR #4462:
URL: https://github.com/apache/calcite/pull/4462#discussion_r2193699819
##########
core/src/main/java/org/apache/calcite/sql/fun/SqlLibraryOperators.java:
##########
@@ -346,7 +346,7 @@ private static RelDataType deriveTypePad(SqlOperatorBinding
binding, RelDataType
@LibraryOperator(libraries = {BIG_QUERY, ORACLE, POSTGRESQL, SPARK, HIVE})
public static final SqlFunction LTRIM =
SqlBasicFunction.create(SqlKind.LTRIM,
- ReturnTypes.ARG0.andThen(SqlTypeTransforms.TO_NULLABLE)
+ ReturnTypes.ARG0.andThen(SqlTypeTransforms.FORCE_NULLABLE)
Review Comment:
Yes, this makes the functions return null even if no argements is 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]