Skip to content

Commit

Permalink
[FLINK-9152] Fix error message on BroadcastConnectedStream
Browse files Browse the repository at this point in the history
  • Loading branch information
aljoscha committed Apr 12, 2018
1 parent 0838bbe commit 48d05f1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ public <KS, OUT> SingleOutputStreamOperator<OUT> process(

Preconditions.checkNotNull(function);
Preconditions.checkArgument(inputStream1 instanceof KeyedStream,
"A KeyedBroadcastProcessFunction can only be used with a keyed stream as the second input.");
"A KeyedBroadcastProcessFunction can only be used on a keyed stream.");

TwoInputStreamOperator<IN1, IN2, OUT> operator =
new CoBroadcastWithKeyedOperator<>(clean(function), broadcastStateDescriptors);
Expand Down Expand Up @@ -209,7 +209,7 @@ public <OUT> SingleOutputStreamOperator<OUT> process(

Preconditions.checkNotNull(function);
Preconditions.checkArgument(!(inputStream1 instanceof KeyedStream),
"A BroadcastProcessFunction can only be used with a non-keyed stream as the second input.");
"A BroadcastProcessFunction can only be used on a non-keyed stream.");

TwoInputStreamOperator<IN1, IN2, OUT> operator =
new CoBroadcastWithNonKeyedOperator<>(clean(function), broadcastStateDescriptors);
Expand Down

0 comments on commit 48d05f1

Please sign in to comment.