starocean999 commented on code in PR #64026:
URL: https://github.com/apache/doris/pull/64026#discussion_r3418621649
##########
fe/fe-core/src/main/java/org/apache/doris/mtmv/MTMVPartitionExprDateTrunc.java:
##########
@@ -152,14 +155,17 @@ private PartitionValue getUpperValue(PartitionValue
upperValue, DateTimeV2Litera
throw new AnalysisException("date trunc not support MAXVALUE
partition");
}
// begin time and end time dateTrunc should has same result
- DateTimeV2Literal endTruncTime =
dateTrunc(upperValue.getStringValue(), Optional.empty(), true);
+ DateTimeV2Literal endTruncTime =
dateTrunc(upperValue.getValue().getStringValue(), Optional.empty(), true);
Review Comment:
dateTrunc函数有个dateFormat参数,在另一个分支会根据format来解析字符串,目前暂时保持和原来语义一致。
--
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]