Rens Groenveld
Rens Groenveld

Reputation: 982

Azure Stream Analytics Window based on variable time

I know I can create Stream Analytics windows as follows:

TumblingWindow(second, 30)

This would make fixed windows every 30 seconds.

Is it possible to make the 30 seconds dynamic? This would mean we get multiple windows through each other, all on different time schedules.

I'm experimenting with reference input file's, and I would like to get the amount of seconds from the reference file, rather than fixed in the query.

If I create the Window with input from a reference file, I get the error:

Error : Invalid window duration: 'timespanInSeconds'. Window duration must be a positive float constant.

Even though it seems to be a valid json number. Is what I'm trying to do even possible?

Upvotes: 0

Views: 351

Answers (1)

Rens Groenveld
Rens Groenveld

Reputation: 982

Something in the docs that I've found: https://msdn.microsoft.com/en-us/azure/stream-analytics/reference/tumbling-window-azure-stream-analytics

It states:

A big integer which describes the size of the window. The windowsize is static and cannot be changed dynamically at runtime.

Upvotes: 2

Related Questions