Esper expression not working

126 views Asked by At

I am currently learning Esper expressions and I am quite confused. I have a simple example that simulates a Humidity sensor that streams numbers every few secnods. With my reading I did a quite complex example:

select avg(value), 'Humidity' as datasource, from myPackage.myClass(name='Humidity').win:time(50 sec)

However, Esper gives me an error. It says that I am using a reserved word near 'from'. Why do I get this error? What is wrong in this expression?

1

There are 1 answers

0
user650839 On BEST ANSWER

Probably just the comma between "datasource, from"