This is an automated email from the ASF dual-hosted git repository.

dataroaring pushed a commit to branch branch-3.0
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/branch-3.0 by this push:
     new f77d43b48ec (upgrade) fix partition key problem introduced by be418110c
f77d43b48ec is described below

commit f77d43b48ec698ed67d2f4149f9288313d6c8f73
Author: Yongqiang YANG <[email protected]>
AuthorDate: Wed Aug 14 21:38:18 2024 +0800

    (upgrade) fix partition key problem introduced by be418110c
---
 fe/fe-core/src/main/java/org/apache/doris/catalog/PartitionKey.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/fe/fe-core/src/main/java/org/apache/doris/catalog/PartitionKey.java 
b/fe/fe-core/src/main/java/org/apache/doris/catalog/PartitionKey.java
index 45960c20b83..d76293d6a75 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/catalog/PartitionKey.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/catalog/PartitionKey.java
@@ -388,11 +388,11 @@ public class PartitionKey implements 
Comparable<PartitionKey>, Writable {
     public void readFields(DataInput in) throws IOException {
         int count = in.readInt();
         for (int i = 0; i < count; i++) {
-            PrimitiveType type = PrimitiveType.valueOf(Text.readString(in));
+            PrimitiveType type = 
PrimitiveType.valueOf(Text.readString(in).toUpperCase());
             boolean isMax = in.readBoolean();
             if (type == PrimitiveType.NULL_TYPE) {
                 String realType = StringLiteral.read(in).getStringValue();
-                type = PrimitiveType.valueOf(realType);
+                type = PrimitiveType.valueOf(realType.toUpperCase());
                 types.add(type);
                 keys.add(NullLiteral.create(Type.fromPrimitiveType(type)));
                 continue;


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to