Skip to content

Commit

Permalink
branch-3.0: [chore](restore) log the table name and partition info wh…
Browse files Browse the repository at this point in the history
…en partition type is different #46213 (#46233)

Cherry-picked from #46213

Co-authored-by: walter <[email protected]>
  • Loading branch information
github-actions[bot] and w41ter authored Jan 1, 2025
1 parent fb2b67b commit a211da6
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1646,7 +1646,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 a211da6

Please sign in to comment.