Skip to content

Commit

Permalink
[hotfix] Remove execute() after print() in Table API examples
Browse files Browse the repository at this point in the history
This closes apache#735
  • Loading branch information
twalthr authored and StephanEwen committed Jun 3, 2015
1 parent a750415 commit fad9795
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,5 @@ public static void main(String[] args) throws Exception {
DataSet<WC> result = tableEnv.toSet(filtered, WC.class);

result.print();
env.execute();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -129,12 +129,12 @@ object PageRankTable {
// emit result
if (fileOutput) {
result.writeAsCsv(outputPath, "\n", " ")
// execute program
env.execute("Expression PageRank Example")
} else {
// execute program and print result
result.print()
}

// execute program
env.execute("Expression PageRank Example")
}

// *************************************************************************
Expand Down

0 comments on commit fad9795

Please sign in to comment.