flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FLINK-2026) Error message in count() only jobs
Date Tue, 19 May 2015 12:17:00 GMT

    [ https://issues.apache.org/jira/browse/FLINK-2026?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14550340#comment-14550340
] 

ASF GitHub Bot commented on FLINK-2026:
---------------------------------------

Github user uce commented on a diff in the pull request:

    https://github.com/apache/flink/pull/686#discussion_r30592879
  
    --- Diff: flink-java/src/main/java/org/apache/flink/api/java/ExecutionEnvironment.java
---
    @@ -914,7 +917,15 @@ public JavaPlan createProgramPlan(String jobName) {
     	 */
     	public JavaPlan createProgramPlan(String jobName, boolean clearSinks) {
     		if (this.sinks.isEmpty()) {
    -			throw new RuntimeException("No data sinks have been created yet. A program needs at
least one sink that consumes data. Examples are writing the data set or printing it.");
    +			if (wasExecuted) {
    +				throw new RuntimeException("No new data sinks have been defined since the " +
    +						"last execution. The last execution refers to the latest call to " +
    +						"'execute()', 'count()' 'collect()' or 'print()'.");
    --- End diff --
    
    missing commas


> Error message in count() only jobs
> ----------------------------------
>
>                 Key: FLINK-2026
>                 URL: https://issues.apache.org/jira/browse/FLINK-2026
>             Project: Flink
>          Issue Type: Bug
>          Components: Core
>            Reporter: Sebastian Schelter
>            Assignee: Maximilian Michels
>            Priority: Minor
>
> If I run a job that only calls count() on a dataset (which is a valid data flow IMHO),
Flink executes the job but complains that no sinks are defined.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message