raminqaf commented on code in PR #26994:
URL: https://github.com/apache/flink/pull/26994#discussion_r2352595226
##########
flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/operations/TruncateTableOperation.java:
##########
@@ -54,10 +53,6 @@ public TableResultInternal execute(Context ctx) {
CatalogManager catalogManager = ctx.getCatalogManager();
ContextResolvedTable contextResolvedTable =
catalogManager.getTableOrError(tableIdentifier);
- CatalogBaseTable catalogBaseTable = contextResolvedTable.getTable();
- if (catalogBaseTable.getTableKind() ==
CatalogBaseTable.TableKind.VIEW) {
- throw new TableException("TRUNCATE TABLE statement is not
supported for view.");
- }
Review Comment:
TRUNCTATE TABLE works for views?
--
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]