mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 23:21:59 +00:00
[docs] added 'strict' parameter in windowFunnel().
This commit is contained in:
parent
1d910c5071
commit
0adaf48a5c
@ -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.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user