diff options
author | blinkov <blinkov@yandex-team.com> | 2023-08-03 14:47:19 +0300 |
---|---|---|
committer | blinkov <blinkov@yandex-team.com> | 2023-08-03 14:47:19 +0300 |
commit | 4c75b5ed26e3369316d8a9b06950527b94ad7c1d (patch) | |
tree | b51e2ac1bde208835408f9760fbb3001489a3290 | |
parent | 923463c378c6dd1c72836f0e0d193bf3582f245e (diff) | |
download | ydb-4c75b5ed26e3369316d8a9b06950527b94ad7c1d.tar.gz |
Restore lost comment start symbols in "session_window.md"
-rw-r--r-- | ydb/docs/en/core/yql/reference/yql-core/syntax/_includes/group_by/session_window.md | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ydb/docs/en/core/yql/reference/yql-core/syntax/_includes/group_by/session_window.md b/ydb/docs/en/core/yql/reference/yql-core/syntax/_includes/group_by/session_window.md index 47c6381a497..c6ddbeeb892 100644 --- a/ydb/docs/en/core/yql/reference/yql-core/syntax/_includes/group_by/session_window.md +++ b/ydb/docs/en/core/yql/reference/yql-core/syntax/_includes/group_by/session_window.md @@ -42,10 +42,10 @@ Using the extended version of SessionWindow, you can, for example, do the follow **Example** ```sql -$max_len = 1000; is the maximum session length. -$timeout = 100; is the timeout (timeout_expr in a simplified version of SessionWindow). +$max_len = 1000; -- is the maximum session length. +$timeout = 100; -- is the timeout (timeout_expr in a simplified version of SessionWindow). -$init = ($row) -> (AsTuple($row.ts, $row.ts)); is the session status: tuple from 1) value of the temporary column ts in the session's first line and 2) in the current line +$init = ($row) -> (AsTuple($row.ts, $row.ts)); -- is the session status: tuple from 1) value of the temporary column ts in the session's first line and 2) in the current line $update = ($row, $state) -> { $is_end_session = $row.ts - $state.0 > $max_len OR $row.ts - $state.1 > $timeout; $new_state = AsTuple(IF($is_end_session, $row.ts, $state.0), $row.ts); |