bowenli86 opened a new pull request #6997: [FLINK-10697] Create an in-memory 
catalog that stores Flink's meta objects
URL: https://github.com/apache/flink/pull/6997
 
 
   ## What is the purpose of the change
   
   Currently all Flink meta objects (currently tables only) are temporarily 
stored in memory as part of Calcite catalog. As we introduce catalog for those 
objects (tables, views, and UDFs), it makes sense to organize them neatly. 
Further, having a catalog implementation that store those objects in memory is 
to retain the currently behavior, which can be configured by user.
   
   `FlinkInMemoryCatalog` is similar to existing `InMemoryExternalCatalog` 
class, which exists only for testing purpose. `FlinkInMemoryCatalog` requires a 
minimum of implementation of `CrudExternalCatalog` interface. For instance, it 
doesn’t need subcatalogs. While it’s possible to extract some common code from 
`InMemoryExternalCatalog` and let `InMemoryExternalCatalog` extend from 
`FlinkInMemoryCatalog`, it’s very likely the two will divert at some point. 
Thus, it’s acceptable to have two independent classes from the very beginning. 
   
   ## Brief change log
   
   - added an in-memory impl of `CrudExternalCatalog` as `FlinkInMemoryCatalog` 
for production use
   - renamed `InMemoryExternalCatalog` to `TestingInMemoryCatalog` to clarify 
its usage scope
   
   ## Verifying this change
   
   This change is already covered by existing tests, such as 
*InMemoryExternalCatalogTests*.
   
   ## Does this pull request potentially affect one of the following parts:
   
    none
   
   ## Documentation
   
     - Does this pull request introduce a new feature? (yes)
     - If yes, how is the feature documented? (JavaDocs)
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to