starocean999 commented on code in PR #64026:
URL: https://github.com/apache/doris/pull/64026#discussion_r3419227552


##########
fe/fe-core/src/main/java/org/apache/doris/catalog/PartitionKey.java:
##########
@@ -564,7 +532,20 @@ public PartitionKey deserialize(JsonElement json, 
java.lang.reflect.Type typeOfT
                     key = MaxLiteral.MAX_VALUE;
                 }
                 if (type != PrimitiveType.DATETIMEV2 && type != 
PrimitiveType.TIMESTAMPTZ) {
-                    key.setType(Type.fromPrimitiveType(type));
+                    // Preserve the literal's type from the deserialized JSON 
payload
+                    // when it carries parameterized information 
(precision/scale/length).

Review Comment:
   done



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