levy5307 commented on a change in pull request #8259:
URL: https://github.com/apache/incubator-doris/pull/8259#discussion_r817378136
##########
File path: fe/fe-core/src/main/java/org/apache/doris/catalog/Catalog.java
##########
@@ -7043,12 +7036,12 @@ public void replayBackendTabletsInfo(BackendTabletsInfo
backendTabletsInfo) {
public void convertDistributionType(Database db, OlapTable tbl) throws
DdlException {
tbl.writeLockOrDdlException();
try {
- if (!tbl.convertRandomDistributionToHashDistribution()) {
- throw new DdlException("Table " + tbl.getName() + " is not
random distributed");
+ if (!tbl.convertHashDistributionToRandomDistribution()) {
Review comment:
Could you add some unit tests for your changes?
--
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]