Skip to content

Commit

Permalink
[chore](restore) log the table name and partition info when partition…
Browse files Browse the repository at this point in the history
… type is different (apache#46213)
  • Loading branch information
w41ter authored Dec 31, 2024
1 parent 3a8fbc9 commit 2a815f9
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1754,7 +1754,11 @@ public String getSignature(int signatureVersion, List<String> partNames) {
// 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();
Expand Down

0 comments on commit 2a815f9

Please sign in to comment.