nesper icon indicating copy to clipboard operation
nesper copied to clipboard

8.5.1 stockticker example outdated

Open yang-guangyuan opened this issue 3 years ago • 9 comments

com.espertech.esper.common.client.EPRuntimeException:“com.espertech.esper.common.client.EPRuntimeException: Error during compilation: Incorrect syntax near 'every' (a reserved keyword) [every Pricelimit=PriceLimit()] [every Pricelimit=PriceLimit()]”

I do not know why, who can help me thanks!

yang-guangyuan avatar Mar 08 '21 10:03 yang-guangyuan

// Listen to all limits to be set
        var expressionText = "every Pricelimit=PriceLimit()";
        EPStatement factory = runtime.DeployStatement(expressionText);

yang-guangyuan avatar Mar 08 '21 10:03 yang-guangyuan

"select * from PriceLimit" is what you want

bernhardttom avatar Mar 08 '21 11:03 bernhardttom

I use examples code, but compile run is error
Error during compilation: Incorrect syntax near 'every' (a reserved keyword) [every Pricelimit=PriceLimit()] [every Pricelimit=PriceLimit()]

yang-guangyuan avatar Mar 09 '21 01:03 yang-guangyuan

what example?

bernhardttom avatar Mar 09 '21 02:03 bernhardttom

NEsper.Examples.StockTicker

nesper-release_8.5.1\examples\NEsper.Examples\example\stockticker

thanks

yang-guangyuan avatar Mar 10 '21 02:03 yang-guangyuan

@bernhardttom thanks

yang-guangyuan avatar Mar 10 '21 07:03 yang-guangyuan

I'll take a look at that example Tom. I'm doing testing in this area anyway.

On Wed, Mar 10, 2021, 1:42 AM yang-guangyuan [email protected] wrote:

@bernhardttom https://github.com/bernhardttom thanks

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/espertechinc/nesper/issues/28#issuecomment-795031475, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAGKCH5YRIBHSAGXVR2GND3TC4PFDANCNFSM4YZDJGPA .

ajaxx avatar Mar 10 '21 19:03 ajaxx

image In 8.5.2

yang-guangyuan avatar Jul 02 '21 02:07 yang-guangyuan

Yes, I was fixing this as part of the 8.6.0 work. Is this something you need working as part of 8.5.2 or can it wait until 8.6.0. If it is immediate and you can fix it, then please submit a PR and I will review it.

ajaxx avatar Jul 02 '21 02:07 ajaxx