문제

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?

도움이 되었습니까?

해결책

Probably just the comma between "datasource, from"

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top