Skip to content

Commit

Permalink
[hotfix][table-api] Properly deprecate StreamTableEnvironment.execute
Browse files Browse the repository at this point in the history
  • Loading branch information
twalthr committed Apr 22, 2021
1 parent 4b5e8cc commit fa0be65
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1142,7 +1142,10 @@ DataStream<Row> toChangelogStream(
* @param jobName Desired name of the job
* @return The result of the job execution, containing elapsed time and accumulators.
* @throws Exception which occurs during job execution.
* @deprecated Use {@link StreamExecutionEnvironment#execute(String)} instead or directly call
* the execute methods of the Table API such as {@link #executeSql(String)}.
*/
@Deprecated
@Override
JobExecutionResult execute(String jobName) throws Exception;
}
Original file line number Diff line number Diff line change
Expand Up @@ -826,7 +826,10 @@ trait StreamTableEnvironment extends TableEnvironment {
* @param jobName Desired name of the job
* @return The result of the job execution, containing elapsed time and accumulators.
* @throws Exception which occurs during job execution.
* @deprecated Use [[StreamExecutionEnvironment.execute(String)]] instead or directly call
* the execute methods of the Table API such as [[executeSql(String)]].
*/
@deprecated
@throws[Exception]
override def execute(jobName: String): JobExecutionResult

Expand Down

0 comments on commit fa0be65

Please sign in to comment.