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


##########
flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/api/internal/materializedtable/MaterializedTableImpl.java:
##########
@@ -20,25 +20,108 @@
 
 import org.apache.flink.annotation.Internal;
 import org.apache.flink.table.api.MaterializedTable;
+import org.apache.flink.table.api.ValidationException;
+import org.apache.flink.table.api.internal.TableEnvironmentInternal;
+import org.apache.flink.table.catalog.CatalogBaseTable.TableKind;
+import org.apache.flink.table.catalog.CatalogManager;
+import org.apache.flink.table.catalog.CatalogMaterializedTable.RefreshMode;
+import org.apache.flink.table.catalog.CatalogMaterializedTable.RefreshStatus;
+import org.apache.flink.table.catalog.ContextResolvedTable;
+import org.apache.flink.table.catalog.IntervalFreshness;
 import org.apache.flink.table.catalog.ObjectIdentifier;
+import org.apache.flink.table.catalog.ResolvedCatalogMaterializedTable;
+
+import java.util.Optional;
 
 /** Implementation of {@link MaterializedTable}. */
 @Internal
-final class MaterializedTableImpl implements MaterializedTable {
+public final class MaterializedTableImpl implements MaterializedTable {
+
+    private final TableEnvironmentInternal tableEnvironment;
+    private final ContextResolvedTable snapshot;

Review Comment:
   Done. The handle now holds only the ObjectIdentifier, and every getter reads 
the catalog.



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