[
https://issues.apache.org/jira/browse/FLINK-2457?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14653711#comment-14653711
]
ASF GitHub Bot commented on FLINK-2457:
---------------------------------------
Github user twalthr commented on a diff in the pull request:
https://github.com/apache/flink/pull/983#discussion_r36193152
--- Diff:
flink-java/src/main/java/org/apache/flink/api/java/typeutils/TypeExtractor.java
---
@@ -391,6 +392,10 @@ protected TypeExtractor() {
curT = typeToClass(curT).getGenericSuperclass();
}
+ if(typeToClass(curT).equals(Tuple0.class)) {
--- End diff --
No, calling `typeToClass()` with a TypeVar will throw an
`IllegalArgumentException`. `typeToClass()` should only be used if
`isClassType()` is true.
> Integrate Tuple0
> ----------------
>
> Key: FLINK-2457
> URL: https://issues.apache.org/jira/browse/FLINK-2457
> Project: Flink
> Issue Type: Improvement
> Reporter: Matthias J. Sax
> Assignee: Matthias J. Sax
> Priority: Minor
>
> Tuple0 is not cleanly integrated:
> - missing serialization/deserialization support in runtime
> - Tuple.getTupleClass(int arity) cannot handle arity zero, ie, cannot create
> an instance of Tuple0
> Tuple0 is currently only used in Python API, but will be integrated into
> Storm compatibility, too.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)