You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@streampipes.apache.org by GitBox <gi...@apache.org> on 2022/11/26 12:54:08 UTC

[GitHub] [streampipes] dominikriemer opened a new issue, #286: Handle non-primitive and primitive event data returned from Siddhi

dominikriemer opened a new issue, #286:
URL: https://github.com/apache/streampipes/issues/286

   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: 
   ```
   
   Event{timestamp=1590427035172, data=[[24661], [10], [c], [1590427035166]], isExpired=false}
   ```
   
    or
   
   contain a *primitive data structure*, e.g. for the numerical filter (siddhi) [2] as an Integer.
   
   Returned Siddhi event looks like this:
   ```
   
   Event{timestamp=1590427127153, data=[24753, 36, b, 1590427127149], isExpired=false}
   ```
   
    
   
   Now, in the wrapper when trying to convert to a StreamPipes event in the 
   ```
   
   toSpEvent(...)
   ```
   
   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)]
   
    
   
   Imported from Jira [STREAMPIPES-142](https://issues.apache.org/jira/browse/STREAMPIPES-142). Original Jira may contain additional context.
   Reported by: wiener.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@streampipes.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [streampipes] dominikriemer closed issue #286: Handle non-primitive and primitive event data returned from Siddhi

Posted by GitBox <gi...@apache.org>.
dominikriemer closed issue #286: Handle non-primitive and primitive event data returned from Siddhi
URL: https://github.com/apache/streampipes/issues/286


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@streampipes.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org