yuqi1129 commented on code in PR #13917:
URL: https://github.com/apache/gravitino/pull/13917#discussion_r4309841618
##########
catalogs-contrib/catalog-jdbc-oceanbase/src/main/java/org/apache/gravitino/catalog/oceanbase/operation/OceanBaseTableOperations.java:
##########
@@ -196,7 +196,8 @@ protected void correctJdbcTableFields(
@Override
protected String generatePurgeTableSql(String tableName) {
- return String.format("TRUNCATE TABLE `%s`", tableName);
+ throw new UnsupportedOperationException(
Review Comment:
The syntax for purging a table in Gravitino is `Drop the data and drop the
table`. Truncating a table in Oceanbase is just removing the data and keeping
the 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]