Jibing-Li commented on code in PR #55787:
URL: https://github.com/apache/doris/pull/55787#discussion_r2331774781


##########
fe/fe-core/src/main/java/org/apache/doris/nereids/trees/expressions/literal/DateLiteral.java:
##########
@@ -611,6 +611,8 @@ protected Expression uncheckedCastTo(DataType targetType) 
throws AnalysisExcepti
                 return new BigIntLiteral(value);
             } else if (targetType.isLargeIntType()) {
                 return new LargeIntLiteral(new 
BigInteger(String.valueOf(value)));
+            } else {

Review Comment:
   Date type can cast to int type, only tiny/small int may overflow for date 
type.



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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to