I have a query that captures the max value of a field in a stream:
from stream1#window.time(1 min)
select max(value1) as max_value1
insert all events into newstream;
Although, after this window I start to get null values in the max_value1.
I do the same for the avg but I always get 0 once all the events expire from the 1 minute time window.