[
https://issues.apache.org/jira/browse/FLINK-33780?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17795637#comment-17795637
]
Feng Jin commented on FLINK-33780:
----------------------------------
[~liyubin117] I agree that saving default_catalog to CatalogStore is a good
idea. However, I think that creating an in-memory catalog as the default
catalog may not be the most suitable approach.
I suggest introducing a new method in
org.apache.flink.table.catalog.CatalogManager.Builder called
defaultCatalog(String defaultCatalogName, CatalogDescriptor catalogDescriptor).
This method would allow specifying a CatalogDescriptor for the default catalog,
similar to how CatalogManager.createCatalog works.
WDYT ?
> Support to store default catalog in CatalogStore
> ------------------------------------------------
>
> Key: FLINK-33780
> URL: https://issues.apache.org/jira/browse/FLINK-33780
> Project: Flink
> Issue Type: Sub-task
> Components: Table SQL / API
> Affects Versions: 1.19.0
> Reporter: Yubin Li
> Priority: Major
> Attachments: image-2023-12-11-13-47-29-623.png,
> image-2023-12-11-14-14-10-002.png, image-2023-12-12-11-09-53-075.png,
> image-2023-12-12-13-42-04-762.png
>
>
> Flink initially creates a default catalog which is included in the
> `Map<String, Catalog> catalogs`, but is not stored in the CatalogStore.
> After conducting thorough investigation, I've determined that the necessary
> modification can be made within the `CatalogManager`.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)