Skip to content

Commit

Permalink
[hotfix] Clean broadcast functions when translating.
Browse files Browse the repository at this point in the history
This closes apache#5477.
  • Loading branch information
kl0u committed Feb 13, 2018
1 parent cd6fe1c commit 010f44c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ public <KS, OUT> SingleOutputStreamOperator<OUT> process(
"A KeyedBroadcastProcessFunction can only be used with a keyed stream as the second input.");

TwoInputStreamOperator<IN1, IN2, OUT> operator =
new CoBroadcastWithKeyedOperator<>(function, broadcastStateDescriptors);
new CoBroadcastWithKeyedOperator<>(clean(function), broadcastStateDescriptors);
return transform("Co-Process-Broadcast-Keyed", outTypeInfo, operator);
}

Expand Down Expand Up @@ -212,7 +212,7 @@ public <OUT> SingleOutputStreamOperator<OUT> process(
"A BroadcastProcessFunction can only be used with a non-keyed stream as the second input.");

TwoInputStreamOperator<IN1, IN2, OUT> operator =
new CoBroadcastWithNonKeyedOperator<>(function, broadcastStateDescriptors);
new CoBroadcastWithNonKeyedOperator<>(clean(function), broadcastStateDescriptors);
return transform("Co-Process-Broadcast", outTypeInfo, operator);
}

Expand Down

0 comments on commit 010f44c

Please sign in to comment.