Github user twalthr commented on a diff in the pull request:

    https://github.com/apache/flink/pull/359#discussion_r24085111
  
    --- Diff: 
flink-java/src/main/java/org/apache/flink/api/java/typeutils/TypeExtractor.java 
---
    @@ -680,10 +680,20 @@ private static void validateInputType(Type t, 
TypeInformation<?> inType) {
                }
        }
        
    -   private static void validateInputType(Class<?> baseClass, Class<?> 
clazz, int inputParamPos, TypeInformation<?> inType) {
    +   private static void validateInputType(Class<?> baseClass, Class<?> 
clazz, int inputParamPos, TypeInformation<?> inTypeInfo) {
                ArrayList<Type> typeHierarchy = new ArrayList<Type>();
    +
    +           // try to get generic parameter
    +           Type inType;
    +           try {
    +                   inType = getParameterType(baseClass, typeHierarchy, 
clazz, inputParamPos);
    +           }
    +           catch (Exception e) {
    +                   return; // skip input validation e.g. for raw types
    --- End diff --
    
    Actually yes, the input validation is only a "nice to have" feature and 
helps the "normal" user. If the getParameterType() does not work, the 
validation should be skipped. We can also change it to "InvalidTypeException" 
if you want.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to