-
Notifications
You must be signed in to change notification settings - Fork 59
Configurable TimeCharacteristic for test environment #54
Comments
I will have a detailed look at this later. I must confess I've never tested Flinkspector with CEP because I assumed It's producing the same results as the rest of the transformations. |
Ok, I found what was the problem. My events do not have a timestamp and the stream time characteristic in the test environment is set to EventTime. Could you make this setting configurable ? |
Aaah, this is something which only happens when using CEP. The common non windowing transformations don't care if you have event time enabled and don't provide timestamps. Instead of changing the stream time charateristic you can instruct Flinkspector to provide timestamps. Change this line:
to
and Flinkspector will provide timestamps. This works for me and the test fails as expected. But I'm not familiar with cep so I'm not sure if this solution is sufficient. |
Yes, it's working fine. Thanks ! |
This issue has been bundled into #57 |
I'm trying to test some CEP with flink-spector, but I can't make it work.
My test is shown below. This test passes although it should not (the expected record should not match the actual one). I'm wondering if the CEP processing is applied correctly...
The code is in Scala, but I'm using the Java DataStream classes.
With the util classes:
The text was updated successfully, but these errors were encountered: