korlov42 commented on code in PR #7355:
URL: https://github.com/apache/ignite-3/pull/7355#discussion_r2681696191
##########
modules/sql-engine/src/main/java/org/apache/ignite/internal/sql/engine/prepare/IgniteTypeCoercion.java:
##########
@@ -625,16 +624,22 @@ RelDataType syncAttributes(
}
}
- private static SqlNode castTo(SqlNode node, RelDataType type) {
- SqlDataTypeSpec targetDataType;
- if (type.getSqlTypeName() == SqlTypeName.UUID) {
- targetDataType = new SqlDataTypeSpec(
- new SqlBasicTypeNameSpec(SqlTypeName.UUID,
SqlParserPos.ZERO), null, type.isNullable(), SqlParserPos.ZERO
- );
- } else {
- targetDataType =
SqlTypeUtil.convertTypeToSpec(type).withNullable(type.isNullable());
+ /** Wraps given expression in CAST iff given expressions is not of
provided type and implicit cast exists. */
Review Comment:
fixed, thanks
--
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]