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


##########
flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/api/internal/materializedtable/MaterializedPipelineImpl.java:
##########
@@ -97,7 +97,7 @@ public MaterializedTable execute(CreateMode mode) {
         Preconditions.checkNotNull(mode, "Create mode must not be null.");
         final Mode finalOperationMode = toFactoryMode(mode);
         tableEnvironment.executeInternal(buildOperation(finalOperationMode));
-        return new MaterializedTableImpl(identifier);
+        return MaterializedTableImpl.of(tableEnvironment, identifier);

Review Comment:
   Done



##########
flink-table/flink-table-api-java/src/test/java/org/apache/flink/table/api/TableEnvironmentTest.java:
##########
@@ -307,6 +307,44 @@ void testListMaterializedTablesThrowsForUnknownNamespace() 
{
                 .hasMessage("Database unknown_database does not exist");
     }
 
+    @Test
+    void testFromMaterializedTable() throws Exception {

Review Comment:
   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]

Reply via email to