SESSION_COUNT
Gets the number of sessions, where a session is defined as events separated by no more than WINDOWSIZE
time.
Syntax
SESSION_COUNT(TIME[, WINDOWSIZE(WHERE cond)])
Arguments
TIME:
An expression of any type that can be ordered.
WINDOWSIZE:
An optional boolean expression filtering the rows used for aggregation.
STORED SESSIONS:
This is optional. If it is omitted there is, in effect, no limit.
Returns
The result type matches the type of the argument.
Notes
Nulls are not counted. In Athena, SESSION_COUNT data can be BIGINT or NUMBER type. In Upsolver output, SESSION_COUNT data can be NUMBER type only.
Example
Data
Query
Find the number of sessions on each serverIp:
Results
Related Functions
Dialog
Last updated