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

morrysnow pushed a commit to branch fix_downgrade
in repository https://gitbox.apache.org/repos/asf/doris.git

commit b9672e84836085c94e8ba3d1e042ba7afd630da8
Author: morrySnow <morrys...@126.com>
AuthorDate: Thu Aug 22 15:53:41 2024 +0800

    [fix](downgrade) partition key should write upper case null type to image
---
 fe/fe-core/src/main/java/org/apache/doris/catalog/PartitionKey.java | 6 +++---
 1 file changed, 3 insertions(+), 3 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 9f129235dfa..ac2beeadb85 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
@@ -376,7 +376,7 @@ public class PartitionKey implements 
Comparable<PartitionKey>, Writable {
         for (int i = 0; i < count; i++) {
             PrimitiveType type = types.get(i);
             if (keys.get(i).isNullLiteral()) {
-                Text.writeString(out, Type.NULL.toString());
+                Text.writeString(out, PrimitiveType.NULL_TYPE.toString());
             } else {
                 Text.writeString(out, type.toString());
             }
@@ -396,11 +396,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).toUpperCase());
+            PrimitiveType type = PrimitiveType.valueOf(Text.readString(in));
             boolean isMax = in.readBoolean();
             if (type == PrimitiveType.NULL_TYPE) {
                 String realType = StringLiteral.read(in).getStringValue();
-                type = PrimitiveType.valueOf(realType.toUpperCase());
+                type = PrimitiveType.valueOf(realType);
                 types.add(type);
                 keys.add(NullLiteral.create(Type.fromPrimitiveType(type)));
                 continue;


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

Reply via email to