Hello! I'm using Flink 1.4.2 and I would like to use a group by operator based on value of my event stream. The functionality that I would like to achieve is similar to the following Esper EPL select symbol, tickDataFeed, median(volume) from StockTickEvent.win:time(30 sec) group by symbol, tickDataFeed So, does the Flick CEP support such a group by functionality? If yes what is syntax? I look forward for your answers. Best regards, Florin "You can list more then one expression in the group by clause to nest groups. Once the sets are established with group by the aggregation functions are applied. This statement posts the median volume for all stock tick events in the last 30 seconds per symbol and tick data feed. Esper posts one event for each group to statement listeners:In the statement above the event properties in the |
Hi,
Yes, sure. Just use CEP on top of KeyedStream. Take a look at `keyBy`: Piotrek
|
Hey,
As a matter of fact, you do not need a Flink's CEP library to run the same query. The same functionality can be achieved by simple tumbling window with a “median” aggregate (“median" you would have to implement by your self).
Piotrek
|
Free forum by Nabble | Edit this page |