zclllyybb commented on code in PR #63281:
URL: https://github.com/apache/doris/pull/63281#discussion_r3271811995
##########
fe/fe-core/src/main/java/org/apache/doris/catalog/PartitionKey.java:
##########
@@ -147,11 +147,14 @@ private static Literal getDateTimeLiteral(String value,
Type type) throws Analys
} else if (type.isDatetimeV2()) {
return new DateTimeV2Literal(value);
} else if (type.isTimeStampTz()) {
+ if (hasExplicitTimeZone(value)) {
+ return new TimestampTzLiteral((TimeStampTzType)
DataType.fromCatalogType(type), value);
Review Comment:
为啥不能全都直接这么搞?这种转换逻辑感觉应该隐藏在构造函数里,这里特殊点有啥?
--
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]