Cherry-pick #39909 The field partition ID of DropPartitionInfo was added in PR: apache/doris#37196, the old version doesn't contain this field so it will be null.
This commit is contained in:
@ -82,7 +82,9 @@ public class DropPartitionInfo implements Writable {
|
||||
}
|
||||
|
||||
public Long getPartitionId() {
|
||||
return partitionId;
|
||||
// the field partition ID was added in PR: apache/doris#37196, the old version doesn't
|
||||
// contain this field so it will be null.
|
||||
return partitionId == null ? -1 : partitionId;
|
||||
}
|
||||
|
||||
public String getPartitionName() {
|
||||
|
||||
Reference in New Issue
Block a user