This is an automated email from the ASF dual-hosted git repository. yiguolei pushed a commit to branch branch-2.1 in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-2.1 by this push: new f5de8b07429 branch-2.1: [bug](restore) Fix wrong storage policy in show create stmt after restore #48158 (#48227) f5de8b07429 is described below commit f5de8b0742962554394adec39220194d1f4ec591 Author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> AuthorDate: Tue Feb 25 09:26:24 2025 +0800 branch-2.1: [bug](restore) Fix wrong storage policy in show create stmt after restore #48158 (#48227) 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 19be4783336..2c81e8e2aba 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 implements Writable { 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