You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@unique is working differently depending on the sequence of events.
Given the following epl:
create schema StockTick(security string, price double);
create schema OrderEvent (orderId int, trader string, symbol string, strategy string,
quantity double);
select orderId, trader, symbol, strategy, sum(quantity)
from OrderEvent#unique(orderId) as o
full outer join StockTick#lastevent as t
on o.symbol = t.security
group by trader, symbol, strategy
@unique is working differently depending on the sequence of events.
Given the following epl:
The following events:
correctly provides the sum as
sum(quantity)=10.0
.But if the
StockTick
did not happen first:I still expected the value of quantity to be 10. But in this case it is
sum(quantity)=20.0
!!Why is
#unique(field)
not being adhered to and what is needed in the query for the output to be unique onorderId
for both cases?The following set of events is also available to run on Esper Notebook
https://notebook.esperonline.net/#/notebook/2HE9662E6
The text was updated successfully, but these errors were encountered: