[
https://issues.apache.org/jira/browse/FLINK-1245?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14236781#comment-14236781
]
ASF GitHub Bot commented on FLINK-1245:
---------------------------------------
Github user rmetzger commented on a diff in the pull request:
https://github.com/apache/incubator-flink/pull/203#discussion_r21416441
--- Diff:
flink-java8/src/test/java/org/apache/flink/api/java/type/lambdas/LambdaExtractionTest.java
---
@@ -129,10 +129,12 @@ public void testMapLambda() {
MapFunction<Tuple2<Tuple1<Integer>, Boolean>,
Tuple2<Tuple1<Integer>, String>> f = (i) -> null;
TypeInformation<?> ti = TypeExtractor.getMapReturnTypes(f,
TypeInfoParser.parse("Tuple2<Tuple1<Integer>, Boolean>"));
- Assert.assertTrue(ti.isTupleType());
- Assert.assertEquals(2, ti.getArity());
- Assert.assertTrue(((TupleTypeInfo<?>)
ti).getTypeAt(0).isTupleType());
- Assert.assertEquals(((TupleTypeInfo<?>) ti).getTypeAt(1),
BasicTypeInfo.STRING_TYPE_INFO);
+ if (ti != null) {
--- End diff --
spaces vs tabs?
> Introduce TypeHints for Java API operators
> ------------------------------------------
>
> Key: FLINK-1245
> URL: https://issues.apache.org/jira/browse/FLINK-1245
> Project: Flink
> Issue Type: Improvement
> Components: Java API
> Reporter: Timo Walther
> Assignee: Timo Walther
>
> Due to type extraction issues with Java 8 Lambdas and many users with type
> erasure issues, TypeHints need to be introduced.
> The whole discussion can be found on the mailing list:
> http://mail-archives.apache.org/mod_mbox/flink-dev/201410.mbox/%[email protected]%3E
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)