Github user uce commented on a diff in the pull request:
https://github.com/apache/incubator-flink/pull/194#discussion_r20569311
--- Diff:
flink-java/src/main/java/org/apache/flink/api/java/operators/CrossOperator.java
---
@@ -517,859 +542,426 @@ public CrossProjection(DataSet<I1> ds1, DataSet<I2>
ds2, int[] firstFieldIndexes
// GENERATED FROM org.apache.flink.api.java.tuple.TupleGenerator.
/**
+ * Chooses a projectTupleX according to the length of {@link
CrossProjection#fieldIndexes}
+ *
+ * @return The projected DataSet.
+ *
+ * @see Projection
+ */
+ @SuppressWarnings("unchecked")
+ public <OUT extends Tuple> ProjectCross<I1, I2, OUT>
projectTupleX() {
+ ProjectCross<I1, I2, OUT> projectionCross = null;
+
+ switch (fieldIndexes.length) {
+ case 1: projectionCross = (ProjectCross<I1, I2, OUT>)
projectTuple1(); break;
--- End diff --
Can you add a warning to the TupleGenerator classes that this method
depends on the number of available tuples? It's a corner case, but it might
happen that the number of available tuples and this method get out of sync.
---
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 [email protected] or file a JIRA ticket
with INFRA.
---