Timm0 commented on code in PR #30143:
URL: https://github.com/apache/flink/pull/30143#discussion_r4801974369


##########
flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/api/MaterializedTable.java:
##########
@@ -85,6 +85,37 @@ public interface MaterializedTable extends 
Explainable<MaterializedTable> {
      */
     Optional<String> getRefreshHandlerDescription();
 
+    /**
+     * This table's data, for querying it or building downstream tables on it, 
e.g. with {@link
+     * Table#materializeInto(String, MaterializedTableDescriptor)}.
+     *
+     * @return the materialized table as a {@link Table}
+     * @throws ValidationException if no materialized table exists at its path 
anymore, or a
+     *     temporary table or view shadows it.
+     */
+    Table toTable();
+
+    /**
+     * The query that defines this table, for deriving a modified definition, 
e.g. with {@link
+     * Table#materializeInto(String, MaterializedTableDescriptor)}.
+     *
+     * @return the expanded query as a {@link Table}
+     * @throws ValidationException if no materialized table exists at its path 
anymore.
+     */
+    Table toQuery();
+
+    /**
+     * This table's current definition, as a descriptor for re-declaring it, 
e.g. with {@link
+     * Table#materializeInto(String, MaterializedTableDescriptor)}.
+     *
+     * <p>The descriptor declares every column, so re-declaring with a query 
that drops a physical
+     * or persisted metadata column fails.
+     *
+     * @return a descriptor of the current definition
+     * @throws ValidationException if no materialized table exists at its path 
anymore.

Review Comment:
   Done. This was also missing for other methods that are already merged to 
master. I added an additional `hotfix` commit here to fix the JavaDocs there as 
well.



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

Reply via email to