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

 ##########
 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:
   `testArrayKeyRejection` should be a better name. it only used for arrays and 
cannot be 
    used for enum type. 

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