3

I try to make a query between a stream (contains a datetime) and a store mongodb table on a datetime column.

define stream TriggerStream (lastexec string);

 @info(name = 'ExtractData')
from TriggerStream as e right outer join OFFRELOG as o
on o.lastmodified> e.lastexec   
select CLIC_OFFRELOG,lastmodified
insert into RECO_TEST;

I get no data from this query. Is there a way to cast datetime column in timsstamp format ?

Best regards, Nicolas

Nicolas
  • 117
  • 1
  • 10

1 Answers1

0

The above query works only if the column(lastmodified) is of type long which is matched to a timestamp column of BSON type of long.

Siddhi-store-mongodb does not support date column out of the box. I have opened an issue in the Github repository to track this support.

Niveathika
  • 1,319
  • 2
  • 8
  • 17