[FLINK-37827][table] Fix use `SHOW CREATE TABLE` for MATERIALIZED_TABLE
What is the purpose of the change
execute show create table for Materialized Table successful.
Brief change log
Verifying this change
- create a MATERIALIZED TABLE t1;
- execute show create table t1;
Documentation
- Does this pull request introduce a new feature? (yes / no)
- If yes, how is the feature documented? (not applicable / docs / JavaDocs / not documented)
CI report:
- de47319a8384c8daab97b1a61e22c015154fe65c Azure: FAILURE
Bot commands
The @flinkbot bot supports the following commands:@flinkbot run azurere-run the last Azure build
error info: [ERROR] Could not execute SQL statement. Reason: java.lang.ClassCastException: class org.apache.flink.table.catalog.ResolvedCatalogMaterializedTable cannot be cast to class org.apache.flink.table.catalog.ResolvedCatalogTable (org.apache.flink.table.catalog.ResolvedCatalogMaterializedTable and org.apache.flink.table.catalog.ResolvedCatalogTable are in unnamed module of loader 'app')
@yanghuaiGit thanks for your contribution can you please rebase the PR to be sure it passes current tests
superseded by https://github.com/apache/flink/pull/26923