Open angel-aam opened 4 years ago
@angel-aam It seems like in your delays_tables_join siddhi app, on the "insert table 2" query you are filling the table1 rather filling table2. I believe that's why you are observing the above behavior.
@AnuGayan, many thanks, you're right, there was a typo in the "table 2" part, I will fix it in the example :) Unfortunately, once it's corrected, the behaviour is still the same, just the first join produces an output. I played this example on siddhi-tooling-5.1.3 and recorded it. You can have a look at the behaviour at https://youtu.be/GEVKefoPnw0
Description: I am facing a non-expected behaviour when using the clause
output every
along with tablejoin
clause.input
stream, and 2 tables, which store a different list of values. Then, there are also 2 queries,query1
will join withtable1
, and when there is a match willoutput first every 5 sec
.query2
will do similarly, will jointable2
, and will output first value found every 5 sec.input
stream which is contained into table 1, there will be a match, and if there is a value contained into table 2, there will be a different match, and both queries will keep silent until next 5 seconds block.the app is the following
When this app is run,first its sent to
table_input
the values1
, and2
to fill both tablesAnd then, it starts sending to the input stream repeatedly values:
1
,2
,1
,2
,1
,2
...It is expected to have in
LogStream
2 values every 5 seconds, the first appearance of1
value, and the first appearance of value2
.But instead, just the first occurrence of value
1
appears all the time, but not the value2
@sink(type='log') define stream LogStream (value string);
@info(name='query1') from Input[value == '1'] select value output first every 5 sec insert into LogStream;
@info(name='query2') from Input[value == '2'] select value output first every 5 sec insert into LogStream;
[2020-04-02_18-53-50_305] INFO {io.siddhi.core.stream.output.sink.LogSink} - delays : LogStream : Event{timestamp=1585846430304, data=[1], isExpired=false} [2020-04-02_18-53-50_706] INFO {io.siddhi.core.stream.output.sink.LogSink} - delays : LogStream : Event{timestamp=1585846430305, data=[2], isExpired=false} [2020-04-02_18-53-55_312] INFO {io.siddhi.core.stream.output.sink.LogSink} - delays : LogStream : Event{timestamp=1585846438305, data=[1], isExpired=false} [2020-04-02_18-53-56_114] INFO {io.siddhi.core.stream.output.sink.LogSink} - delays : LogStream : Event{timestamp=1585846439305, data=[2], isExpired=false}