you are referring to an older version of Siddhi, try
from cseEventStream [ price >= 50] select *symbol, price* insert into StockQuote ; On Thu, Mar 13, 2014 at 4:54 PM, Seshika Fernando <[email protected]> wrote: > > Hi Suho, > > I get the following error (copied below) when running the Siddhi > SimpleFilter sample from the latest code path. I noticed that this is > caused by the query "from cseEventStream [ price >= 50] insert into > StockQuote *symbol, price*;". I got around it by taking off the part in > bold. > However I have seen the same query used in the above format (without any > errors) in the quick-start-samples from > https://svn.wso2.org/repos/wso2/people/suho/packs/siddhi/siddhi-1.0.1-wso2v1-samples.zip > . > Is there any particular reason why this fails in the latest release? > > > simpleFilter: > [java] Exception in thread "main" > org.wso2.siddhi.query.compiler.exception.SiddhiParserException: line 1:60 > missing EOF at 'symbol' > [java] at > org.wso2.siddhi.query.compiler.SiddhiCompiler.parseQuery(SiddhiCompiler.java:141) > [java] at > org.wso2.siddhi.core.SiddhiManager.addQuery(SiddhiManager.java:273) > [java] at org.wso2.siddhi.sample.SimpleFilterSample.main(Unknown > Source) > [java] Caused by: > org.wso2.siddhi.query.compiler.exception.SiddhiParserException: line 1:60 > missing EOF at 'symbol' > [java] at > org.wso2.siddhi.query.compiler.SiddhiQLGrammarParser.emitErrorMessage(SiddhiQLGrammarParser.java:192) > [java] at > org.antlr.runtime.BaseRecognizer.displayRecognitionError(BaseRecognizer.java:194) > [java] at > org.antlr.runtime.BaseRecognizer.reportError(BaseRecognizer.java:186) > [java] at > org.antlr.runtime.BaseRecognizer.recoverFromMismatchedToken(BaseRecognizer.java:613) > [java] at > org.antlr.runtime.BaseRecognizer.match(BaseRecognizer.java:115) > [java] at > org.wso2.siddhi.query.compiler.SiddhiQLGrammarParser.queryFinal(SiddhiQLGrammarParser.java:1948) > [java] at > org.wso2.siddhi.query.compiler.SiddhiCompiler.parseQuery(SiddhiCompiler.java:133) > [java] ... 2 more > [java] Java Result: 1 > > > Seshika > > -- *S. Suhothayan* Associate Technical Lead, *WSO2 Inc. *http://wso2.com * <http://wso2.com/>* lean . enterprise . middleware *cell: (+94) 779 756 757 | blog: http://suhothayan.blogspot.com/ <http://suhothayan.blogspot.com/>twitter: http://twitter.com/suhothayan <http://twitter.com/suhothayan> | linked-in: http://lk.linkedin.com/in/suhothayan <http://lk.linkedin.com/in/suhothayan>*
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
