Github user tillrohrmann commented on a diff in the pull request:
https://github.com/apache/flink/pull/3375#discussion_r102462053
--- Diff:
flink-libraries/flink-cep/src/main/java/org/apache/flink/cep/operator/CEPOperatorUtils.java
---
@@ -127,16 +134,36 @@
keySerializer,
nfaFactory));
} else {
- patternStream = inputStream.transform(
+
+ KeySelector<T, Byte> keySelector = new
NullByteKeySelector<>();
+ TypeSerializer<Byte> keySerializer =
ByteSerializer.INSTANCE;
+
+ patternStream = inputStream.keyBy(new
NullByteKeySelector<T>()).transform(
"TimeoutCEPPatternOperator",
eitherTypeInformation,
- new TimeoutCEPPatternOperator<>(
+ new TimeoutKeyedCEPPatternOperator<>(
inputSerializer,
isProcessingTime,
+ keySelector,
+ keySerializer,
nfaFactory
)).forceNonParallel();
}
return patternStream;
}
+
+ /**
+ * Used as dummy KeySelector to allow using WindowOperator for
Non-Keyed Windows.
--- End diff --
Does not seem to fit here. Copy & paste artifact?
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---