I'm trying to use PySiddhi4 to run CEP in a Python-based environment. To get acquainted with the package, I tried to run the sample code provided by the Siddhi developers. Here's the link: https://wso2.github.io/PySiddhi/Run-PySiddhi4/
However, when I run the code, I obtain a JavaException error while instantiating siddhiAppRuntime. The siddhiApp query string is as follows:
siddhiApp = "define stream cseEventStream (symbol string, price float, volume long); " + \
"@info(name = 'query1') from cseEventStream[volume < 150] select symbol,price insert into outputStream;"
I obtain the following error description:
JVM exception occurred: Error between @ Line: 1. Position: 0 and @ Line: 1. Position: 1. Syntax error in SiddhiQL, extraneous input 'iddhiAp' expecting {<EOF>, ';'}.
I tried to play around with the spacing within the query string, but to no avail. Does anyone have a solution to this issue? Thanks a lot in advance!