Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

We can think that there are two types of catalogs in Flink, in-memory catalogs and external catalogs:

In-memory catalog:

  1. Metadata is a copy of the metadata of the external system, and

...

  1. the user ensures that the entity exists in the external system and the metadata is consistency, otherwise, throw exception when running. CTAS need create table first, so it is hard to ensures that the entity exists in the external system and the metadata is consistency.
  2. Requires the user to configure some information about the external system through the with syntax, Flink can't get it through in-memory catalog.



External catalog:



I suggest introducing a CTAS clause with a following syntax:

...