Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Resolved
-
None
Description
The following method is added in catalog.py in FLINK-11480:
def get_table_factory(self): """ Get an optional TableFactory instance that's responsible for generating source/sink for tables stored in this catalog. :return: An optional TableFactory instance. """ return self._j_catalog.getTableFactory()
There is some problem with the implementation as it returns a Java TableFactory and this is not friendly for Python users. We should correct the implementation.
Before doing that, we need to make sure the following thing:
Is this method designed to be used by users or will only be used internally? I take a quick look at the code and it seems to me that this method will only be used internally. Maybe xuefuz and phoenixjiangnan can provide more information about this.
If this method is designed to be used by users directly, we need to provide a Python TableFactory wrapper and makes sure this method is usable for Python users. If this method is designed to be only used internally, then we need to remove it from the Python catalog. For the API completeness test, we can add this method to excluded_methods of CatalogAPICompletenessTests to make the tests passed.
Attachments
Issue Links
- links to