Github user dukechain commented on a diff in the pull request:
https://github.com/apache/incubator-flink/pull/194#discussion_r20141144
--- Diff:
flink-java/src/main/java/org/apache/flink/api/java/operators/ProjectOperator.java
---
@@ -93,6 +113,30 @@ public Projection(DataSet<T> ds, int[] fieldIndexes) {
this.fieldIndexes = fieldIndexes;
}
+ public void acceptAdditionalIndexes(int... additionalIndexes) {
--- End diff --
In order to remove types() call in project(), project() should return a
ProjectOperator object. As projectOperator inherites from DataSet, Hence, at
user-end, there is no compiling error for chained projection like
dataset.project(0).project(1). If we do not accept the additional index, the
run-time result would be wrong.
---
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.
---