[docs] added 'strict' parameter in windowFunnel().

This commit is contained in:
achimbab 2019-11-11 12:41:23 +09:00 committed by GitHub
parent 1d910c5071
commit 0adaf48a5c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -219,17 +219,19 @@ SELECT sequenceCount('(?1).*(?2)')(time, number = 1, number = 2) FROM t
- [sequenceMatch](#function-sequencematch)
## windowFunnel(window)(timestamp, cond1, cond2, cond3, ...)
## windowFunnel(window, [mode])(timestamp, cond1, cond2, cond3, ...)
Searches for event chains in a sliding time window and calculates the maximum number of events that occurred from the chain.
```
windowFunnel(window)(timestamp, cond1, cond2, cond3, ...)
windowFunnel(window, [mode])(timestamp, cond1, cond2, cond3, ...)
```
**Parameters:**
- `window` — Length of the sliding window in seconds.
- `mode` - It is an optional argument.
* `'strict'` - When the `'strict'` is set, the windowFunnel() applies conditions only for the unique values.
- `timestamp` — Name of the column containing the timestamp. Data types supported: `Date`, `DateTime`, and other unsigned integer types (note that even though timestamp supports the `UInt64` type, it's value can't exceed the Int64 maximum, which is 2^63 - 1).
- `cond1`, `cond2`... — Conditions or data describing the chain of events. Data type: `UInt8`. Values can be 0 or 1.