Yulei-Yang commented on code in PR #35874:
URL: https://github.com/apache/doris/pull/35874#discussion_r1627526910
##########
fe/fe-core/src/main/java/org/apache/doris/alter/Alter.java:
##########
@@ -764,6 +764,12 @@ public void modifyPartitionsProperty(Database db,
// check currentStoragePolicy resource exist.
Env.getCurrentEnv().getPolicyMgr().checkStoragePolicyExist(currentStoragePolicy);
partitionInfo.setStoragePolicy(partition.getId(),
currentStoragePolicy);
+ } else {
+ if (partition.getRemoteDataSize() > 0) {
+ throw new AnalysisException(
+ "Cannot cancel storage policy for partition which is
already on code storage.");
Review Comment:
done
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]