Github user fhueske commented on a diff in the pull request: https://github.com/apache/flink/pull/572#discussion_r28696976 --- Diff: flink-tests/src/test/java/org/apache/flink/test/javaApiOperators/JoinITCase.java --- @@ -663,6 +663,39 @@ public void testNonPojoToVerifyNestedTupleElementSelectionWithFirstKeyFieldGreat "((3,2,Hello world),(3,2,Hello world)),((3,2,Hello world),(3,2,Hello world))\n"; } + @Test + public void testJoinWithAtomicType1() throws Exception { + final ExecutionEnvironment env = ExecutionEnvironment.getExecutionEnvironment(); + + DataSet<Tuple3<Integer, Long, String>> ds1 = CollectionDataSets.getSmall3TupleDataSet(env); + DataSet<Integer> ds2 = env.fromElements(1, 2); + + DataSet<Tuple2<Tuple3<Integer, Long, String>, Integer>> joinDs = ds1.join(ds2).where(0).equalTo("*"); + + joinDs.writeAsCsv(resultPath); + env.setParallelism(1); + env.execute(); + + expected = "(1,1,Hi),1\n" + + "(2,2,Hello),2"; + } + + public void testJoinWithAtomicType2() throws Exception { + final ExecutionEnvironment env = ExecutionEnvironment.getExecutionEnvironment(); + + DataSet<Integer> ds1 = env.fromElements(1, 2); + DataSet<Tuple3<Integer, Long, String>> ds2 = CollectionDataSets.getSmall3TupleDataSet(env); + + DataSet<Tuple2<Integer, Tuple3<Integer, Long, String>>> joinDs = ds1.join(ds2).where("*").equalTo(0); + + joinDs.writeAsCsv(resultPath); + env.setParallelism(1); --- End diff -- Why parallelism == 1?
--- 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. ---