mihaibudiu commented on code in PR #5128:
URL: https://github.com/apache/calcite/pull/5128#discussion_r3691903302
##########
core/src/main/java/org/apache/calcite/adapter/enumerable/RexToLixTranslator.java:
##########
@@ -341,6 +341,54 @@ Expression translateCast(
return expressionHandlingSafe(convert3, safe, targetType);
}
+ /** Converts a ROW value to another ROW type, field by field. */
+ private Expression getRowConvertExpression(
+ RelDataType sourceType,
+ RelDataType targetType,
+ Expression operand,
+ ConstantExpression format) {
+ if (sourceType.getSqlTypeName() == SqlTypeName.NULL) {
Review Comment:
NULL is the type of the NULL literal.
--
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]