简体   繁体   English

Wso2 Stream Mongo日期时间连接查询

[英]Wso2 Stream Mongo Datetime join query

I try to make a query between a stream (contains a datetime) and a store mongodb table on a datetime column. 我尝试在日期时间列上的流(包含日期时间)和商店mongodb表之间进行查询。

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 ? 有没有办法以timsstamp格式转换datetime列?

Best regards, Nicolas 最好的问候,尼古拉斯

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. 上述查询仅在列(lastmodified)为long类型且与BSON类型为long的时间戳列匹配时才有效。

Siddhi-store-mongodb does not support date column out of the box. Siddhi-store-mongodb不支持开箱即用的日期列。 I have opened an issue in the Github repository to track this support. 我在Github存储库中打开了一个问题来跟踪这个支持。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM