I think this was probably because there are some old queries in CEP
documentation under "Writing a custom window".

I've created a doc jira[1] to track this.

@Praneesha, can you look into this and fix the docs mentioned in the
ticket, please?

Thanks,
Lasantha

[1] https://wso2.org/jira/browse/DOCUMENTATION-1186

On 13 October 2014 16:20, Tishan Dahanayakage <tis...@wso2.com> wrote:

> Hi Asok,
> Siddhi query you are using is wrong. Correct query is
>
> from topkeventstream#window.custom:topKfrequency("3","1",symbol)
> select symbol
> insert into topkresultstream;
>
> Please refer [1] to learn about Siddhi query language.
> When you want to send data out of the window execute
> nextProcessor.process(event). It will send particular set of events to the
> next execution element of the query(ex: Selector)
>
> [1] https://docs.wso2.com/display/CEP310/Siddhi+Language+Specification
>
> On Mon, Oct 13, 2014 at 3:59 PM, Asok Perera <as...@wso2.com> wrote:
>
>> Hi,
>>
>> I wrote a window extension for Siddhi (implementing Stremlib library)
>> which suppose to be keeping most frequent K events in the window. According
>> to the logs, the window in functional.
>> Now I need to get the events which are *inside* the window into an
>> output stream.
>> Im using below siddhi query,
>>
>> from topkeventstream#window.custom:topKfrequency("3","1",symbol)
>> insert into topkresultstream symbol
>>
>> , this gives me following error
>> line 2:29 extraneous input 'symbol' expecting EOF
>>
>> Does someone has any idea on this ?
>>
>> BR
>>
>> *Asok Aravinda Perera*
>> Software Engineer
>> WSO2, Inc.;http://wso2.com/
>> <http://www.google.com/url?q=http%3A%2F%2Fwso2.com%2F&sa=D&sntz=1&usg=AFQjCNGJuLRux6KkJwXKVUCYOtEsNCmIAQ>
>> lean.enterprise.middleware
>>
>> Mobile: +94722241032
>>
>> _______________________________________________
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Tishan Dahanayakage
> Software Engineer
> WSO2, Inc.
> Mobile:+94 716481328
>
> Disclaimer: This communication may contain privileged or other
> confidential information and is intended exclusively for the addressee/s.
> If you are not the intended recipient/s, or believe that you may have
> received this communication in error, please reply to the sender indicating
> that fact and delete the copy you received and in addition, you should not
> print, copy, re-transmit, disseminate, or otherwise use the information
> contained in this communication. Internet communications cannot be
> guaranteed to be timely, secure, error or virus-free. The sender does not
> accept liability for any errors or omissions.
>
> _______________________________________________
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Lasantha Fernando*
Software Engineer - Data Technologies Team
WSO2 Inc. http://wso2.com

email: lasan...@wso2.com
mobile: (+94) 71 5247551
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to