...
The disadvantage of this solution is that it does not cover the TableEnvironment#registerCatalog usage scenario of TableEnvironment#registerCatalogscenario, and database related information is missing in the InMemoryCatalog scenario.
Note: This solution only works if we create the Catalog using DDL, because we can only get the Catalog properties with the with keyword. If we use a Catalog registered by TableEnvironment#registerCatalog method, we cannot get these properties. Therefore, CTAS does not currently support jobs that use TableEnvironment#registerCatalog.
...