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 bc2bd9a8850 branch-3.0: [bug](restore) Fix wrong storage policy in 
show create stmt after restore #48158 (#48226)
bc2bd9a8850 is described below

commit bc2bd9a8850736296b40348be27aa1865fb4b6a1
Author: github-actions[bot] 
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Tue Feb 25 19:12:39 2025 +0800

    branch-3.0: [bug](restore) Fix wrong storage policy in show create stmt 
after restore #48158 (#48226)
    
    Cherry-picked from #48158
    
    Co-authored-by: xy720 <22125576+xy...@users.noreply.github.com>
---
 fe/fe-core/src/main/java/org/apache/doris/catalog/PartitionInfo.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/fe/fe-core/src/main/java/org/apache/doris/catalog/PartitionInfo.java 
b/fe/fe-core/src/main/java/org/apache/doris/catalog/PartitionInfo.java
index 304a105b8cf..2466b7f0d76 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/catalog/PartitionInfo.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/catalog/PartitionInfo.java
@@ -437,7 +437,7 @@ public class PartitionInfo {
                 idToItem.put(entry.getKey(), 
origIdToItem.get(entry.getValue()));
             }
             idToInMemory.put(entry.getKey(), 
origIdToInMemory.get(entry.getValue()));
-            idToStoragePolicy.put(entry.getKey(), 
origIdToStoragePolicy.get(entry.getValue()));
+            idToStoragePolicy.put(entry.getKey(), 
origIdToStoragePolicy.getOrDefault(entry.getValue(), ""));
         }
     }
 


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

Reply via email to