You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@streampipes.apache.org by "Patrick Wiener (Jira)" <ji...@apache.org> on 2020/05/25 17:39:00 UTC

[jira] [Created] (STREAMPIPES-142) Handle non-primitive and primitive event data returned from Siddhi

Patrick Wiener created STREAMPIPES-142:
------------------------------------------

             Summary: 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


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)