[ 
https://issues.apache.org/jira/browse/STREAMPIPES-142?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17116158#comment-17116158
 ] 

ASF subversion and git services commented on STREAMPIPES-142:
-------------------------------------------------------------

Commit 1545c25f471a1e0328ae3fb2806e97d3781a994b in incubator-streampipes's 
branch refs/heads/dev from Patrick Wiener
[ https://gitbox.apache.org/repos/asf?p=incubator-streampipes.git;h=1545c25 ]

[STREAMPIPES-142] Handle non-primitive and primitive event data returned from 
Siddhi


> Handle non-primitive and primitive event data returned from Siddhi
> ------------------------------------------------------------------
>
>                 Key: STREAMPIPES-142
>                 URL: https://issues.apache.org/jira/browse/STREAMPIPES-142
>             Project: StreamPipes
>          Issue Type: Bug
>          Components: Pipeline Elements
>            Reporter: Patrick Wiener
>            Priority: Major
>
> Depending on the Siddhi query, events received from Siddhi either contain a 
> *non-primitive data structure*, e.g. for the trend detection [1] it is a 
> LinkedList,
> Returned Siddhi event looks like this: 
> {code:java}
> Event{timestamp=1590427035172, data=[[24661], [10], [c], [1590427035166]], 
> isExpired=false}{code}
>  or
> contain a *primitive data structure*, e.g. for the numerical filter (siddhi) 
> [2] as an Integer.
> Returned Siddhi event looks like this:
> {code:java}
> Event{timestamp=1590427127153, data=[24753, 36, b, 1590427127149], 
> isExpired=false}{code}
>  
> Now, in the wrapper when trying to convert to a StreamPipes event in the 
> {code:java}
> toSpEvent(...){code}
> method this fails due to casting error.
>  
> [1][Trend 
> detection|[https://github.com/apache/incubator-streampipes-extensions/blob/dev/streampipes-processors-filters-siddhi/src/main/java/org/apache/streampipes/processors/siddhi/trend/Trend.java]]
> [2][Numerical Filter 
> (Siddhi)|[https://github.com/apache/incubator-streampipes-extensions/blob/dev/streampipes-processors-filters-siddhi/src/main/java/org/apache/streampipes/processors/siddhi/filter/NumericalFilter.java]]
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to