morrySnow commented on code in PR #55787:
URL: https://github.com/apache/doris/pull/55787#discussion_r2331609302


##########
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:
   according to docs, should forbid cast to IntegerLiteral too 
https://doris.apache.org/docs/dev/sql-manual/basic-element/sql-data-types/conversion/int-conversion#from-datetime



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