Versions Compared

Key

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

...

/** Interface of a database in a catalog, and can be serialized along with Catalog. */
@PublicEvolving
public interface CatalogDatabase extends Serializable {

... ...

}

In the InMemoryCatalog schemescenario, in order to avoid the situation that the database does not exist when the table creation is executed on the JM side, we need to also serialize the internal CatalogDatabase when serializing we serialize InMemoryCatalog, so the CatalogDatabase needs to extend Serializable.

Currently only InMemoryCatalog serialization requires serializing CatalogDatabase.

Implementation Plan

The overall execution process is shown in the following figure.

...