flint icon indicating copy to clipboard operation
flint copied to clipboard

Count based windows

Open degloff opened this issue 7 years ago • 2 comments

There is a trait for count based windows but it looks like it is not yet finished?

degloff avatar Jul 26 '18 15:07 degloff

Hi - Yes it's not implemented.

The issue is that it is hard to know how many previous partitions to look at in order to n rows. A better way to probably to implement a time-bounded count window, e.g., 10 rows with in past 3 days - which will give you either 10 rows or all the available rows within the past 3 days, whichever is smaller.

icexelloss avatar Jul 26 '18 15:07 icexelloss

I see your point, that makes total sense and is not a big compromise.

degloff avatar Jul 26 '18 18:07 degloff