sohardforaname commented on code in PR #18209:
URL: https://github.com/apache/doris/pull/18209#discussion_r1189476197


##########
fe/fe-core/src/main/java/org/apache/doris/analysis/NullLiteral.java:
##########
@@ -132,7 +132,7 @@ protected Expr uncheckedCastTo(Type targetType) throws 
AnalysisException {
         Preconditions.checkState(targetType.isValid());
         if (!type.equals(targetType)) {
             NullLiteral nullLiteral = new NullLiteral(this);
-            nullLiteral.setType(targetType);
+            nullLiteral.setType(Type.convertDateLikeTypeToV2(targetType));

Review Comment:
   to replace the null_type to datev2 type if the targetType is datev1 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: commits-unsubscr...@doris.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to