You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@fluss.apache.org by "raminqaf (via GitHub)" <gi...@apache.org> on 2026/10/14 06:48:45 UTC
[PR] [flink] Support SHOW MATERIALIZED TABLES on Flink 2.2+ [fluss]
raminqaf opened a new pull request, #4634:
URL: https://github.com/apache/fluss/pull/4634
<!--
*Thank you very much for contributing to Fluss - we are happy that you want to help us improve Fluss. To help the community review your contribution in the best possible way, please go through the checklist below, which will get the contribution into a shape in which it can be best reviewed.*
## Contribution Checklist
- Make sure that the pull request corresponds to a [GitHub issue](https://github.com/apache/fluss/issues). Exceptions are made for typos in JavaDoc or documentation files, which need no issue.
- Name the pull request in the format "[component] Title of the pull request", where *[component]* should be replaced by the name of the component being changed. Typically, this corresponds to the component label assigned to the issue (e.g., [kv], [log], [client], [flink], [rust], [python], [c++], [elixir]). Skip *[component]* if you are unsure about which is the best component.
- Fill out the template below to describe the changes contributed by the pull request. That will give reviewers the context they need to do the review.
- Make sure that the change passes the automated tests, i.e., `mvn clean verify` passes.
- Each pull request should address only one issue, not mix up code from multiple issues.
- **Generative AI disclosure:** Indicate whether generative AI tools were used in authoring this PR. If yes, specify the tool below.
- [ ] No generative AI tools used
- [x] Yes (Claude Code 2.1.296, Claude Opus 5.5)
**(The sections below can be removed for hotfixes or typos)**
-->
<!--
Generated-by: Claude Code 2.1.296 (Claude Opus 5.5) following [the guidelines](https://github.com/apache/fluss/blob/main/AGENTS.md)
-->
### Purpose
Linked issue: close #ISSUE
On Flink 2.2 and 2.3, `SHOW MATERIALIZED TABLES` fails in the Fluss catalog:
```sql
CREATE TABLE src (a INT, b STRING);
CREATE MATERIALIZED TABLE mt FRESHNESS = INTERVAL '30' SECOND AS SELECT a, b FROM src;
SHOW MATERIALIZED TABLES;
```
| Statement | Before | After |
|----------------------------|------------------------------------------------------------------------------------------------------------|-----------|
| `SHOW MATERIALIZED TABLES` | `listMaterializedTables(String) is not implemented for class org.apache.fluss.flink.catalog.FlinkCatalog.` | `mt` |
| `SHOW TABLES` | `src`, `mt` | Unchanged |
### Brief change log
- `FlinkCatalog#listMaterializedTables` filters `listTables` by the `materialized-table.*` custom properties. It fetches the table infos in parallel.
- The method has no `@Override`, because `fluss-flink-common` compiles against Flink 1.20, which doesn't have it. Flink 2.2+ dispatches to it at runtime.
- `listTables` still returns both tables and materialized tables, as the `Catalog#listTables` contract requires.
Trade-off: the statement costs one `getTableInfo` call per table in the database. A server-side filter would avoid that, but it needs a protocol change for a `SHOW` statement.
### Tests
- `FlinkCatalogTest#testListMaterializedTables`, a multi-version test that runs on Flink 1.20, 2.2 and 2.3.
- `Flink22CatalogITCase#testShowMaterializedTables` and `Flink23CatalogITCase#testShowMaterializedTables` run the SQL statement end to end.
### API and Format
No change.
### Documentation
No change.
--
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: issues-unsubscribe@fluss.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [flink] Support SHOW MATERIALIZED TABLES on Flink 2.2+ [fluss]
Posted by "fresh-borzoni (via GitHub)" <gi...@apache.org>.
fresh-borzoni merged PR #4634:
URL: https://github.com/apache/fluss/pull/4634
--
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: issues-unsubscribe@fluss.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org