[
https://issues.apache.org/jira/browse/FLINK-34918?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Yubin Li updated FLINK-34918:
-----------------------------
Description:
We propose to introduce `getComment()` method in `CatalogDescriptor`, and the
reasons are as follows.
1. For the sake of design consistency, follow the design of FLIP-295 [1] which
introduced `CatalogStore` component, `CatalogDescriptor` includes names and
attributes, both of which are used to describe the catalog, and `comment` can
be added smoothly.
2. Extending the existing class rather than add new method to the existing
interface, Especially, the `Catalog` interface, as a core interface, is used by
a series of important components such as `CatalogFactory`, `CatalogManager` and
`FactoryUtil`, and is implemented by a large number of connectors such as JDBC,
Paimon, and Hive. Adding methods to it will greatly increase the implementation
complexity, and more importantly, increase the cost of iteration, maintenance,
and verification.
!image-2024-05-26-02-11-30-070.png|width=575,height=415!
was:
We propose to introduce `getComment()` method in `CatalogDescriptor`, and the
reasons are as follows.
1. For the sake of design consistency, follow the design of FLIP-295 [1] which
introduced `CatalogStore` component, `CatalogDescriptor` includes names and
attributes, both of which are used to describe the catalog, and `comment` can
be added smoothly.
2. Extending the existing class rather than add new method to the existing
interface, Especially, the `Catalog` interface, as a core interface, is used by
a series of important components such as `CatalogFactory`, `CatalogManager` and
`FactoryUtil`, and is implemented by a large number of connectors such as JDBC,
Paimon, and Hive. Adding methods to it will greatly increase the implementation
complexity, and more importantly, increase the cost of iteration, maintenance,
and verification.
> Support `ALTER CATALOG COMMENT` syntax
> --------------------------------------
>
> Key: FLINK-34918
> URL: https://issues.apache.org/jira/browse/FLINK-34918
> Project: Flink
> Issue Type: Sub-task
> Components: Table SQL / API
> Affects Versions: 1.20.0
> Reporter: Yubin Li
> Assignee: Yubin Li
> Priority: Major
> Labels: pull-request-available
>
> We propose to introduce `getComment()` method in `CatalogDescriptor`, and the
> reasons are as follows.
> 1. For the sake of design consistency, follow the design of FLIP-295 [1]
> which introduced `CatalogStore` component, `CatalogDescriptor` includes names
> and attributes, both of which are used to describe the catalog, and `comment`
> can be added smoothly.
> 2. Extending the existing class rather than add new method to the existing
> interface, Especially, the `Catalog` interface, as a core interface, is used
> by a series of important components such as `CatalogFactory`,
> `CatalogManager` and `FactoryUtil`, and is implemented by a large number of
> connectors such as JDBC, Paimon, and Hive. Adding methods to it will greatly
> increase the implementation complexity, and more importantly, increase the
> cost of iteration, maintenance, and verification.
>
> !image-2024-05-26-02-11-30-070.png|width=575,height=415!
--
This message was sent by Atlassian Jira
(v8.20.10#820010)