Timm0 commented on code in PR #30232:
URL: https://github.com/apache/flink/pull/30232#discussion_r4771599729
##########
flink-table/flink-table-planner/src/test/java/org/apache/flink/table/planner/runtime/stream/sql/MaterializedTableTableApiITCase.java:
##########
@@ -469,8 +469,9 @@ void testRegularTableAndViewAtThePathAreRejected() throws
Exception {
.containsExactly(
"Could not execute CreateTable in path
`test_catalog`.`test_db`.`existing_view`",
"Table (or view) test_db.existing_view already exists
in Catalog test_catalog.");
- // A view under createOrAlter() is rejected by the factory. The
regular-table case is
- // rejected before planning and covered in
MaterializedPipelineImplTest.
+ // createOrAlter() on a regular table is covered by
DefaultMaterializedTableExecutorTest
Review Comment:
Added the assert to `testRegularTableAndViewAtThePathAreRejected` and
removed the comment.
##########
docs/content/docs/sql/materialized-table/table-api.md:
##########
@@ -124,6 +125,16 @@ If the new refresh job starts but the catalog cannot
record it, the job is cance
job restarts from its savepoint. If that cancel fails, the materialized table
is rolled back and
left suspended instead of restarting the old job.
+# Converting a Regular Table
+
+If conversion is enabled, `execute()` converts a regular table at the path
into a materialized
+table, as
+[`CREATE OR ALTER MATERIALIZED TABLE`]({{< ref
"docs/sql/materialized-table/statements"
>}}#converting-a-table-to-a-materialized-table)
+does. Enable
+[table.materialized-table.conversion-from-table.enabled]({{< ref
"docs/dev/table/config"
>}}#table-materialized-table-conversion-from-table-enabled)
+in `config.yaml` or in the `EnvironmentSettings` passed to
`TableEnvironment.create`. Setting it
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]