autophagy commented on code in PR #26121: URL: https://github.com/apache/flink/pull/26121#discussion_r1959749951
########## flink-python/pyflink/table/catalog.py: ########## @@ -1391,3 +1398,418 @@ def of(catalog_name: str, configuration: Configuration, comment: str = None): j_catalog_descriptor = gateway.jvm.org.apache.flink.table.catalog.CatalogDescriptor.of( catalog_name, configuration._j_configuration, comment) return CatalogDescriptor(j_catalog_descriptor) + + +class Column(metaclass=ABCMeta): Review Comment: In Python, the `metaclass` argument defines how the underlying class should be created. In this case we're using `ABCMeta` from the [Abstract Base Classes ](https://docs.python.org/3/library/abc.html) module, which in this context is used to enforce abstract method implementation in subclasses and prevent instantiation of the abstract class `Column` (trying to instantiate it with `Column()` will return an error like `TypeError: Can't instantiate abstract class Column without an implementation for abstract method 'with_comment'`, etc). It's similar to defining a `abstract class` in Java. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@flink.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org