WeiZhong94 commented on a change in pull request #8719: [FLINK-12767][python] 
Support user defined connectors/format
URL: https://github.com/apache/flink/pull/8719#discussion_r294743743
 
 

 ##########
 File path: flink-python/pyflink/table/table_descriptor.py
 ##########
 @@ -602,6 +603,58 @@ def derive_schema(self):
         return self
 
 
+class CustomFormatDescriptor(FormatDescriptor):
+    """
+    Describes the custom format of data.
+    """
+
+    def __init__(self, type, version):
+        """
+        Constructs a :class:`CustomFormatDescriptor`.
+
+        :param type: String that identifies this format.
+        :param version: Property version for backwards compatibility.
+        """
+
+        if not isinstance(type, (str, unicode)):
+            raise TypeError("type must be of type str.")
+        if not isinstance(version, (int, long)):
+            raise TypeError("version must be of type str.")
 
 Review comment:
   Is it means type int?

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to