Github user sachingoel0101 commented on a diff in the pull request:
https://github.com/apache/flink/pull/970#discussion_r36513272
--- Diff:
flink-core/src/main/java/org/apache/flink/api/common/operators/CollectionExecutor.java
---
@@ -501,4 +536,22 @@ public int getSuperstepNumber() {
return (T) previousAggregates.get(name);
}
}
+
+ private static final class DoingNothing implements Callable<Path>{
+ private Path entry;
+
+ public DoingNothing(Path entry){
+ this.entry = entry;
+ }
+
+ @Override
+ public Path call() throws IOException{
+ try{
+ LocalFileSystem fs = (LocalFileSystem)
entry.getFileSystem();
+ return entry.isAbsolute() ? new
Path(entry.toUri().getPath()): new Path(fs.getWorkingDirectory(),entry);
+ } catch (ClassCastException e){
+ throw new RuntimeException("Collection
execution must have only local file paths");
--- End diff --
Yeah. That would make more sense.
---
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.
---