auroflow commented on code in PR #28843:
URL: https://github.com/apache/flink/pull/28843#discussion_r3701029336


##########
flink-python/pyflink/dataframe/datatype.py:
##########
@@ -49,7 +76,55 @@ def __eq__(self, other: object) -> bool:
 
     @PublicEvolving()
     def __hash__(self) -> int:
-        return hash(str(self._table_data_type))
+        return hash(repr(self._table_data_type))
+
+    @PublicEvolving()
+    def not_null(self) -> "DataType":
+        """
+        Return a non-nullable version of this data type.
+
+        .. versionadded:: 2.4.0
+        """
+        return DataType(self._table_data_type.not_null())
+
+    @PublicEvolving()
+    def nullable(self) -> "DataType":
+        """
+        Return a nullable version of this data type.
+
+        .. versionadded:: 2.4.0
+        """
+        return DataType(self._table_data_type.nullable())
+
+    @classmethod
+    @PublicEvolving()
+    def int8(cls) -> "DataType":

Review Comment:
   Created at 
[FLINK-40300](https://issues.apache.org/jira/projects/FLINK/issues/FLINK-40300).
 I'll be working on a PR soon.



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to