Timm0 commented on code in PR #29929:
URL: https://github.com/apache/flink/pull/29929#discussion_r4598902890
##########
flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/api/TableEnvironment.java:
##########
@@ -1477,6 +1477,44 @@ void createTemporarySystemFunction(
*/
boolean dropTemporaryModel(String path);
+ /**
+ * Drops a materialized table registered in the given path.
+ *
+ * <p>If its continuous refresh job is running, it is cancelled before the
materialized table is
+ * removed from the catalog. Dropping a materialized table in full refresh
mode requires a
+ * workflow scheduler and fails on a plain {@link TableEnvironment}.
+ *
+ * <p>This method can only drop permanent objects. If a temporary table or
view in the given
+ * path shadows the materialized table, a {@link ValidationException} is
thrown. Drop the
+ * temporary object first using {@link #dropTemporaryTable} or {@link
#dropTemporaryView}.
+ *
+ * @param path The given path under which the materialized table will be
dropped. See also the
+ * {@link TableEnvironment} class description for the format of the
path.
+ * @return true if a materialized table was found in the given path and
the drop was executed,
Review Comment:
Good find, 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]