jiacai2050 commented on code in PR #1477:
URL: 
https://github.com/apache/incubator-horaedb/pull/1477#discussion_r1472537344


##########
horaemeta/server/cluster/manager.go:
##########
@@ -307,6 +307,20 @@ func (m *managerImpl) DropTable(ctx context.Context, 
clusterName, schemaName, ta
                return errors.WithMessage(err, "get table")
        }
 
+       // If the table is partitioned, delete the table metadata directly.
+       if table.IsPartitioned() {
+               _, err = cluster.metadata.DropTableMetadata(ctx,
+                       schemaName,
+                       tableName,
+               )
+               if err != nil {
+                       return errors.WithMessage(err, "cluster drop table")

Review Comment:
   ```suggestion
                        return errors.WithMessage(err, "cluster drop 
partitioned table")
   ```



-- 
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]

Reply via email to