xiedeyantu commented on code in PR #4557:
URL: https://github.com/apache/calcite/pull/4557#discussion_r2383650658


##########
core/src/main/java/org/apache/calcite/rex/RexUtil.java:
##########
@@ -1718,7 +1726,67 @@ public static boolean isLosslessCast(RelDataType source, 
RelDataType target) {
       final int targetPrecision = target.getPrecision();
       return targetPrecision == PRECISION_NOT_SPECIFIED || targetPrecision >= 
sourceLength;
     }
-    // Return FALSE by default
+
+    // 4) DECIMAL -> DECIMAL

Review Comment:
   I think consistency in style is key, for example, X → Y, or X → Y: {some 
reasons}, or From X to Y: {some reasons}. I think all of these are great—just 
choose one.



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