Github user aljoscha commented on a diff in the pull request:
https://github.com/apache/flink/pull/5230#discussion_r165395176
--- Diff:
flink-streaming-java/src/main/java/org/apache/flink/streaming/api/graph/StreamGraphGenerator.java
---
@@ -586,7 +586,7 @@ private StreamGraph
generateInternal(List<StreamTransformation<?>> transformatio
transform.getOutputType(),
transform.getName());
- if (transform.getStateKeySelector1() != null) {
+ if (transform.getStateKeySelector1() != null ||
transform.getStateKeySelector2() != null) {
--- End diff --
I think we need some test that using keyed state actually works when only
one of the inputs is keyed. I think we need an `ITCase` for that somewhere.
---