This is an automated email from the ASF dual-hosted git repository.
yiguolei pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push:
new 2a815f993ad [chore](restore) log the table name and partition info
when partition type is different (#46213)
2a815f993ad is described below
commit 2a815f993ad696ec0bf207444db36197f272a01d
Author: walter <[email protected]>
AuthorDate: Wed Jan 1 00:38:48 2025 +0800
[chore](restore) log the table name and partition info when partition type
is different (#46213)
---
fe/fe-core/src/main/java/org/apache/doris/catalog/OlapTable.java | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/fe/fe-core/src/main/java/org/apache/doris/catalog/OlapTable.java
b/fe/fe-core/src/main/java/org/apache/doris/catalog/OlapTable.java
index 73646c881f3..d30e9f9fde7 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/catalog/OlapTable.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/catalog/OlapTable.java
@@ -1754,7 +1754,11 @@ public class OlapTable extends Table implements
MTMVRelatedTableIf, GsonPostProc
// get intersect partition names with the given table "anotherTbl". not
including temp partitions
public Status getIntersectPartNamesWith(OlapTable anotherTbl, List<String>
intersectPartNames) {
if (this.getPartitionInfo().getType() !=
anotherTbl.getPartitionInfo().getType()) {
- return new Status(ErrCode.COMMON_ERROR, "Table's partition type is
different");
+ String msg = "Table's partition type is different. local table: "
+ getName()
+ + ", local type: " + getPartitionInfo().getType()
+ + ", another table: " + anotherTbl.getName()
+ + ", another type: " +
anotherTbl.getPartitionInfo().getType();
+ return new Status(ErrCode.COMMON_ERROR, msg);
}
Set<String> intersect = this.getPartitionNames();
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]