klion26 commented on a change in pull request #11518: [FLINK-16555] Block Enum 
as key type
URL: https://github.com/apache/flink/pull/11518#discussion_r399950429
 
 

 ##########
 File path: 
flink-streaming-java/src/test/java/org/apache/flink/streaming/api/DataStreamTest.java
 ##########
 @@ -1232,6 +1233,32 @@ public void testObjectArrayKeyRejection() {
                testKeyRejection(keySelector, keyTypeInfo);
        }
 
+       private enum TestEnum {
+               FOO, BAR
+       }
+
+       @Test
+       public void testEnumKeyRejection() {
+               KeySelector<Tuple2<TestEnum, String>, TestEnum> keySelector =
 
 Review comment:
   can we reuse the function `testKeyRejection` for the newly added test?

----------------------------------------------------------------
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