Skip to content

YQ-3984 Group by hop docs to ydb #15017

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 15 commits into from
May 14, 2025

Conversation

kardymonds
Copy link
Collaborator

Changelog entry

...

Changelog category

  • Documentation (changelog entry is not required)

Description for reviewers

...

@kardymonds kardymonds requested a review from a team as a code owner February 25, 2025 13:48
@github-actions github-actions bot added the documentation Improvements or additions to documentation label Feb 25, 2025
Copy link

🟢 2025-02-25 13:52:11 UTC The validation of the Pull Request description is successful.

Copy link

github-actions bot commented Feb 25, 2025

2025-02-25 13:53:28 UTC Pre-commit check linux-x86_64-relwithdebinfo for a3da521 has started.
2025-02-25 13:53:33 UTC Artifacts will be uploaded here
2025-02-25 13:55:50 UTC ya make is running...
🟢 2025-02-25 13:55:55 UTC Tests successful.

Test history | Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
0 0 0 0 0 0

🟢 2025-02-25 13:56:01 UTC Build successful.

Copy link

github-actions bot commented Feb 25, 2025

2025-02-25 13:54:03 UTC Pre-commit check linux-x86_64-release-asan for a3da521 has started.
2025-02-25 13:54:07 UTC Artifacts will be uploaded here
2025-02-25 13:56:28 UTC ya make is running...
🟢 2025-02-25 13:56:34 UTC Tests successful.

Test history | Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
0 0 0 0 0 0

🟢 2025-02-25 13:56:41 UTC Build successful.

Copy link

❌ Documentation build

Revision build failed

Build logs

Errors (2)

❌ /ru/yql/reference/syntax/group_by.md: 283: MD031/blanks-around-fences Fenced code blocks should be surrounded by blank lines [Context: "```yql"]

❌ /ru/yql/reference/syntax/group_by.md: 285: MD031/blanks-around-fences Fenced code blocks should be surrounded by blank lines [Context: "```"]

Copy link

github-actions bot commented Feb 25, 2025

2025-02-25 18:33:37 UTC Pre-commit check linux-x86_64-relwithdebinfo for 67039d2 has started.
2025-02-25 18:34:05 UTC Artifacts will be uploaded here
2025-02-25 18:37:04 UTC ya make is running...
🟢 2025-02-25 18:37:09 UTC Tests successful.

Test history | Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
0 0 0 0 0 0

🟢 2025-02-25 18:37:15 UTC Build successful.

Copy link

✅ Documentation build

Revision built successfully
Revision preview link

Copy link

github-actions bot commented Feb 25, 2025

2025-02-25 18:43:12 UTC Pre-commit check linux-x86_64-release-asan for 67039d2 has started.
2025-02-25 18:43:28 UTC Artifacts will be uploaded here
2025-02-25 18:45:44 UTC ya make is running...
🟢 2025-02-25 18:45:50 UTC Tests successful.

Test history | Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
0 0 0 0 0 0

🟢 2025-02-25 18:45:56 UTC Build successful.

Copy link

✅ Documentation build

Revision built successfully
Revision preview link

Copy link

github-actions bot commented Feb 26, 2025

2025-02-26 06:33:36 UTC Pre-commit check linux-x86_64-relwithdebinfo for 5ff5023 has started.
2025-02-26 06:33:52 UTC Artifacts will be uploaded here
2025-02-26 06:36:21 UTC ya make is running...
🟢 2025-02-26 06:36:26 UTC Tests successful.

Test history | Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
0 0 0 0 0 0

🟢 2025-02-26 06:36:32 UTC Build successful.

Copy link

github-actions bot commented Feb 26, 2025

2025-02-26 06:33:48 UTC Pre-commit check linux-x86_64-release-asan for 5ff5023 has started.
2025-02-26 06:34:02 UTC Artifacts will be uploaded here
2025-02-26 06:36:27 UTC ya make is running...
🟢 2025-02-26 06:36:33 UTC Tests successful.

Test history | Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
0 0 0 0 0 0

🟢 2025-02-26 06:36:38 UTC Build successful.

Copy link

github-actions bot commented Mar 3, 2025

2025-03-03 07:14:12 UTC Pre-commit check linux-x86_64-release-asan for 59a6a79 has started.
2025-03-03 07:14:37 UTC Artifacts will be uploaded here
2025-03-03 07:16:56 UTC ya make is running...
🟢 2025-03-03 07:17:01 UTC Tests successful.

Test history | Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
0 0 0 0 0 0

🟢 2025-03-03 07:17:07 UTC Build successful.

Copy link

github-actions bot commented Mar 3, 2025

2025-03-03 07:15:43 UTC Pre-commit check linux-x86_64-relwithdebinfo for 59a6a79 has started.
2025-03-03 07:16:32 UTC Artifacts will be uploaded here
2025-03-03 07:19:27 UTC ya make is running...
🟢 2025-03-03 07:19:33 UTC Tests successful.

Test history | Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
0 0 0 0 0 0

🟢 2025-03-03 07:19:38 UTC Build successful.

Copy link

github-actions bot commented Mar 3, 2025

✅ Documentation build

Revision built successfully
Revision preview link

Comment on lines 269 to 276
Group the table by the values of the specified columns or expressions and the time window.

If GROUP BY is present in the query, then when selecting columns (between `SELECT ... FROM`) you can **only** use the following constructs:

1. Columns by which grouping is performed (they are included in the `GROUP BY` argument).
2. Aggregate functions (see the next section). Columns by which **no** grouping is made can only be included as arguments for an aggregate function.
3. Functions that output the start and end time of the current window (`HOP_START` and `HOP_END`)
4. Arbitrary calculations combining paragraphs 1-3.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If I understood what's going on here correctly, now the group by without hops is hidden for RTMR, while this section for hops is visible in all cases? If so, this intro needs to be in the beginning before the regular group by, not here somewhere in the middle of the article.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If I understood what's going on here correctly, now the group by without hops is hidden for RTMR, while this section for hops is visible in all cases?

да

If so, this intro needs to be in the beginning before the regular group by, not here somewhere in the middle of the article.

я не уверен что это вступление вообще актуально/правильно, поэтому оставил его только для RTMR

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

я не уверен что это вступление вообще актуально/правильно, поэтому оставил его только для RTMR

надо разобраться и поправить, вступление — чуть ли не самое главное в статье

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Перенес вступление в общую часть


The implemented version of the time window is called the **hopping window**. This is a window that moves forward in discrete intervals (the `hop` parameter). The total duration of the window is set by the `interval` parameter. To determine the time of each input event, the `time_extractor` parameter is used. This expression depends only on the input values of the stream's columns and must have the `Timestamp` type. It indicates where exactly to get the time value from input events.

In each stream defined by the values of all the grouping columns, the window moves forward independently of other streams. Advancement of the window is totally dependent on the latest event of the stream. Since records in streams get somewhat mixed in time, the `delay` parameter has been added so you can delay the closing of the window by a specified period. Events arriving before the current window are ignored.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This talks about streams and it's not clear how it maps to running this over regular tables.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Поправил, убрал в большинстве streams

Co-authored-by: Ivan Blinkov <ivan@blinkov.ru>
Copy link

❌ Documentation build

Revision build failed

Build logs

Errors (8)

❌ /en/devops/ansible/initial-deployment.md: 2: MD031/blanks-around-fences Fenced code blocks should be surrounded by blank lines

❌ /en/postgresql/statements/delete_from.md: 2: MD031/blanks-around-fences Fenced code blocks should be surrounded by blank lines

❌ /en/postgresql/statements/drop_table.md: 2: MD031/blanks-around-fences Fenced code blocks should be surrounded by blank lines

❌ /en/postgresql/statements/insert_into.md: 2: MD031/blanks-around-fences Fenced code blocks should be surrounded by blank lines

❌ /en/yql/reference/syntax/expressions.md: 2: MD031/blanks-around-fences Fenced code blocks should be surrounded by blank lines

❌ /en/yql/reference/types/primitive.md: 2: MD031/blanks-around-fences Fenced code blocks should be surrounded by blank lines

❌ /ru/yql/reference/syntax/expressions.md: 2: MD031/blanks-around-fences Fenced code blocks should be surrounded by blank lines

❌ /ru/yql/reference/types/primitive.md: 2: MD031/blanks-around-fences Fenced code blocks should be surrounded by blank lines

Warnings (675)

⚠️ Title not found: ../../../yql/reference/syntax/create_table/with.md#time-to-live in /en/concepts/datamodel/_includes/table.md

⚠️ Title not found: ../../../yql/reference/syntax/create_table/with.md#time-to-live in /ru/concepts/datamodel/_includes/table.md

⚠️ Variable airflow-name not found in /en/integrations/orchestration/_includes/toc-table.md

⚠️ Variable airflow-name not found in /ru/integrations/orchestration/_includes/toc-table.md

⚠️ Variable azure_docs not found in /en/devops/ansible/_includes/terraform/azure.md

⚠️ Variable azure_docs not found in /ru/devops/ansible/_includes/terraform/azure.md

⚠️ Variable backend_name not found in /en/yql/reference/syntax/create_table/with.md

⚠️ Variable backend_name not found in /ru/yql/reference/syntax/create_table/with.md

⚠️ Variable concept_table not found in /en/yql/reference/syntax/create_table/with.md

⚠️ Variable concept_table not found in /ru/yql/reference/syntax/create_table/with.md

⚠️ Variable lang not found in /ru/_includes/parameterized-query.md

⚠️ Variable lang not found in /ru/reference/ydb-cli/parameterized-queries-cli.md

⚠️ Variable objstorage-full-name not found in /en/concepts/federated_query/s3/external_data_source.md

⚠️ Variable objstorage-name not found in /en/concepts/_includes/ttl.md

⚠️ Variable objstorage-name not found in /en/concepts/federated_query/s3/external_table.md

Log was truncated. (660 records)

Copy link

github-actions bot commented Mar 10, 2025

2025-03-10 13:10:45 UTC Pre-commit check linux-x86_64-relwithdebinfo for 5db52b4 has started.
2025-03-10 13:11:13 UTC Artifacts will be uploaded here
2025-03-10 13:13:58 UTC ya make is running...
🟢 2025-03-10 13:14:04 UTC Tests successful.

Test history | Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
0 0 0 0 0 0

🟢 2025-03-10 13:14:09 UTC Build successful.

Copy link

github-actions bot commented Mar 10, 2025

2025-03-10 13:11:06 UTC Pre-commit check linux-x86_64-release-asan for 5db52b4 has started.
2025-03-10 13:11:21 UTC Artifacts will be uploaded here
2025-03-10 13:13:42 UTC ya make is running...
🟢 2025-03-10 13:13:48 UTC Tests successful.

Test history | Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
0 0 0 0 0 0

🟢 2025-03-10 13:13:54 UTC Build successful.

Co-authored-by: Ivan Blinkov <ivan@blinkov.ru>
Copy link

❌ Documentation build

Revision build failed

Build logs

Errors (8)

❌ /en/devops/ansible/initial-deployment.md: 2: MD031/blanks-around-fences Fenced code blocks should be surrounded by blank lines

❌ /en/postgresql/statements/delete_from.md: 2: MD031/blanks-around-fences Fenced code blocks should be surrounded by blank lines

❌ /en/postgresql/statements/drop_table.md: 2: MD031/blanks-around-fences Fenced code blocks should be surrounded by blank lines

❌ /en/postgresql/statements/insert_into.md: 2: MD031/blanks-around-fences Fenced code blocks should be surrounded by blank lines

❌ /en/yql/reference/syntax/expressions.md: 2: MD031/blanks-around-fences Fenced code blocks should be surrounded by blank lines

❌ /en/yql/reference/types/primitive.md: 2: MD031/blanks-around-fences Fenced code blocks should be surrounded by blank lines

❌ /ru/yql/reference/syntax/expressions.md: 2: MD031/blanks-around-fences Fenced code blocks should be surrounded by blank lines

❌ /ru/yql/reference/types/primitive.md: 2: MD031/blanks-around-fences Fenced code blocks should be surrounded by blank lines

Warnings (675)

⚠️ Title not found: ../../../yql/reference/syntax/create_table/with.md#time-to-live in /en/concepts/datamodel/_includes/table.md

⚠️ Title not found: ../../../yql/reference/syntax/create_table/with.md#time-to-live in /ru/concepts/datamodel/_includes/table.md

⚠️ Variable airflow-name not found in /en/integrations/orchestration/_includes/toc-table.md

⚠️ Variable airflow-name not found in /ru/integrations/orchestration/_includes/toc-table.md

⚠️ Variable azure_docs not found in /en/devops/ansible/_includes/terraform/azure.md

⚠️ Variable azure_docs not found in /ru/devops/ansible/_includes/terraform/azure.md

⚠️ Variable backend_name not found in /en/yql/reference/syntax/create_table/with.md

⚠️ Variable backend_name not found in /ru/yql/reference/syntax/create_table/with.md

⚠️ Variable concept_table not found in /en/yql/reference/syntax/create_table/with.md

⚠️ Variable concept_table not found in /ru/yql/reference/syntax/create_table/with.md

⚠️ Variable lang not found in /ru/_includes/parameterized-query.md

⚠️ Variable lang not found in /ru/reference/ydb-cli/parameterized-queries-cli.md

⚠️ Variable objstorage-full-name not found in /en/concepts/federated_query/s3/external_data_source.md

⚠️ Variable objstorage-name not found in /en/concepts/_includes/ttl.md

⚠️ Variable objstorage-name not found in /en/concepts/federated_query/s3/external_table.md

Log was truncated. (660 records)

Copy link

github-actions bot commented Mar 10, 2025

2025-03-10 13:46:12 UTC Pre-commit check linux-x86_64-relwithdebinfo for 132e949 has started.
2025-03-10 13:46:26 UTC Artifacts will be uploaded here
2025-03-10 13:48:37 UTC ya make is running...
🟢 2025-03-10 13:48:43 UTC Tests successful.

Test history | Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
0 0 0 0 0 0

🟢 2025-03-10 13:48:48 UTC Build successful.

Copy link

github-actions bot commented Mar 10, 2025

2025-03-10 13:46:12 UTC Pre-commit check linux-x86_64-release-asan for 132e949 has started.
2025-03-10 13:46:27 UTC Artifacts will be uploaded here
2025-03-10 13:48:42 UTC ya make is running...
🟢 2025-03-10 13:48:47 UTC Tests successful.

Test history | Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
0 0 0 0 0 0

🟢 2025-03-10 13:48:53 UTC Build successful.

Co-authored-by: Ivan Blinkov <ivan@blinkov.ru>
Copy link

❌ Documentation build

Revision build failed

Build logs

Errors (8)

❌ /en/devops/ansible/initial-deployment.md: 2: MD031/blanks-around-fences Fenced code blocks should be surrounded by blank lines

❌ /en/postgresql/statements/delete_from.md: 2: MD031/blanks-around-fences Fenced code blocks should be surrounded by blank lines

❌ /en/postgresql/statements/drop_table.md: 2: MD031/blanks-around-fences Fenced code blocks should be surrounded by blank lines

❌ /en/postgresql/statements/insert_into.md: 2: MD031/blanks-around-fences Fenced code blocks should be surrounded by blank lines

❌ /en/yql/reference/syntax/expressions.md: 2: MD031/blanks-around-fences Fenced code blocks should be surrounded by blank lines

❌ /en/yql/reference/types/primitive.md: 2: MD031/blanks-around-fences Fenced code blocks should be surrounded by blank lines

❌ /ru/yql/reference/syntax/expressions.md: 2: MD031/blanks-around-fences Fenced code blocks should be surrounded by blank lines

❌ /ru/yql/reference/types/primitive.md: 2: MD031/blanks-around-fences Fenced code blocks should be surrounded by blank lines

Warnings (675)

⚠️ Title not found: ../../../yql/reference/syntax/create_table/with.md#time-to-live in /en/concepts/datamodel/_includes/table.md

⚠️ Title not found: ../../../yql/reference/syntax/create_table/with.md#time-to-live in /ru/concepts/datamodel/_includes/table.md

⚠️ Variable airflow-name not found in /en/integrations/orchestration/_includes/toc-table.md

⚠️ Variable airflow-name not found in /ru/integrations/orchestration/_includes/toc-table.md

⚠️ Variable azure_docs not found in /en/devops/ansible/_includes/terraform/azure.md

⚠️ Variable azure_docs not found in /ru/devops/ansible/_includes/terraform/azure.md

⚠️ Variable backend_name not found in /en/yql/reference/syntax/create_table/with.md

⚠️ Variable backend_name not found in /ru/yql/reference/syntax/create_table/with.md

⚠️ Variable concept_table not found in /en/yql/reference/syntax/create_table/with.md

⚠️ Variable concept_table not found in /ru/yql/reference/syntax/create_table/with.md

⚠️ Variable lang not found in /ru/_includes/parameterized-query.md

⚠️ Variable lang not found in /ru/reference/ydb-cli/parameterized-queries-cli.md

⚠️ Variable objstorage-full-name not found in /en/concepts/federated_query/s3/external_data_source.md

⚠️ Variable objstorage-name not found in /en/concepts/_includes/ttl.md

⚠️ Variable objstorage-name not found in /en/concepts/federated_query/s3/external_table.md

Log was truncated. (660 records)

@blinkov blinkov assigned anton-bobkov and unassigned blinkov Apr 3, 2025
Поскольку записи в потоках слегка перемешиваются во времени, добавлен параметр `delay`, позволяющий отложить закрытие окна на указанную величину. События, приходящие до текущего окна, игнорируются.
{% endif %}

Параметры `interval` и `delay` следует задавать кратными параметру `hop`. Некратные интервалы будут округлены в меньшую сторону.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

interval - положительное число, делящееся на hop, delay - неотрицательное число, делящееся на hop. Некратные интервалы в текущей реализации запрещены.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Добавил

Copy link

✅ Documentation build

Revision built successfully
Revision preview link

Copy link

github-actions bot commented Apr 21, 2025

2025-04-21 06:01:05 UTC Pre-commit check linux-x86_64-relwithdebinfo for d117be1 has started.
2025-04-21 06:01:20 UTC Artifacts will be uploaded here
2025-04-21 06:03:33 UTC ya make is running...
🟢 2025-04-21 06:03:39 UTC Tests successful.

Test history | Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
0 0 0 0 0 0

🟢 2025-04-21 06:03:45 UTC Build successful.

Copy link

github-actions bot commented Apr 21, 2025

2025-04-21 06:01:19 UTC Pre-commit check linux-x86_64-release-asan for d117be1 has started.
2025-04-21 06:01:36 UTC Artifacts will be uploaded here
2025-04-21 06:03:48 UTC ya make is running...
🟢 2025-04-21 06:03:54 UTC Tests successful.

Test history | Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
0 0 0 0 0 0

🟢 2025-04-21 06:04:01 UTC Build successful.

@ydbot
Copy link
Collaborator

ydbot commented Apr 24, 2025

🔄 New commits pushed — @anton-bobkov please take a look.

Copy link

✅ Documentation build

Revision built successfully
Revision preview link

Copy link

github-actions bot commented Apr 24, 2025

2025-04-24 11:55:32 UTC Pre-commit check linux-x86_64-release-asan for d213ae1 has started.
2025-04-24 11:55:53 UTC Artifacts will be uploaded here
2025-04-24 11:58:12 UTC ya make is running...
🟢 2025-04-24 11:58:19 UTC Tests successful.

Test history | Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
0 0 0 0 0 0

🟢 2025-04-24 11:58:26 UTC Build successful.

Copy link

github-actions bot commented Apr 24, 2025

2025-04-24 12:03:46 UTC Pre-commit check linux-x86_64-relwithdebinfo for d213ae1 has started.
2025-04-24 12:03:55 UTC Artifacts will be uploaded here
2025-04-24 12:06:15 UTC ya make is running...
🟢 2025-04-24 12:06:21 UTC Tests successful.

Test history | Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
0 0 0 0 0 0

🟢 2025-04-24 12:06:28 UTC Build successful.

HOP(time_extractor, hop, interval, delay)
```

Реализованный вариант окна времени называется **hopping window**. Это окно, продвигающееся вперёд дискретными интервалами (параметр `hop`). Общая длительность окна задаётся параметром `interval`. Для определения времени каждого входного события используется параметр `time_extractor`. Это выражение, зависящее только от входных значений столбцов, должно иметь тип `Timestamp`. Оно указывает, откуда именно во входных событиях доставать значение времени.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Не совсем понятно о каких входных событиях идёт речь, если мы говорим об обычных таблицах в YDB.


Для задания `hop`, `interval` и `delay` используется строковое выражение, соответствующее стандарту [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601). Это формат, который используется для конструирования встроенного типа `Interval` [из строки](../builtins/basic.md#data-type-literals).

Функции без параметров `HOP_START` и `HOP_END` возвращают значение типа `Timestamp` и соответствуют началу и концу текущего окна.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Тут чуть больше информации добавить:

При выборке столбцов (между SELECT ... FROM) можно использовать функции HOP_START и HOP_END (без параметров), которые возвращают значение типа Timestamp и соответствуют началу и концу текущего окна.

Параметры `interval` и `hop` следует задавать положительными.

{% if select_command != "SELECT STREAM" %}
Параметр `delay` в текущей реализации не используется т.к. данные в одной партиции уже отсортированы.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Лучше уточнить как именно не используется -- игнорируется или не указывается? В примерах delay присутствует...


Group the `SELECT` results by the values of the specified columns or expressions. `GROUP BY` is often combined with [aggregate functions](../builtins/aggregation.md) (`COUNT`, `MAX`, `MIN`, `SUM`, `AVG`) to perform calculations in each group.
You can group by the result of an arbitrary expression computed from the source columns. In this case, to access the result of this expression, we recommend assigning a name to it using `AS`. See the second example.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Добавить ссылку на пример


## GROUP BY ... HOP

Сгруппировать таблицу по значениям указанных столбцов или выражений, а также окну времени.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Можем добавить информацию о том, что такое окно времени или ссылку на эту информацию?

Co-authored-by: anton-bobkov <anton-bobkov@ydb.tech>
@ydbot
Copy link
Collaborator

ydbot commented May 7, 2025

🔄 New commits pushed — @anton-bobkov please take a look.

Copy link

github-actions bot commented May 7, 2025

✅ Documentation build

Revision built successfully
Revision preview link

Copy link

github-actions bot commented May 7, 2025

2025-05-07 13:08:11 UTC Pre-commit check linux-x86_64-release-asan for 01c787a has started.
2025-05-07 13:08:23 UTC Artifacts will be uploaded here
2025-05-07 13:10:34 UTC ya make is running...
🟢 2025-05-07 13:10:40 UTC Tests successful.

Test history | Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
0 0 0 0 0 0

🟢 2025-05-07 13:10:48 UTC Build successful.

Copy link

github-actions bot commented May 7, 2025

2025-05-07 13:08:21 UTC Pre-commit check linux-x86_64-relwithdebinfo for 01c787a has started.
2025-05-07 13:08:33 UTC Artifacts will be uploaded here
2025-05-07 13:10:55 UTC ya make is running...
🟢 2025-05-07 13:11:02 UTC Tests successful.

Test history | Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
0 0 0 0 0 0

🟢 2025-05-07 13:11:09 UTC Build successful.

@ydbot
Copy link
Collaborator

ydbot commented May 7, 2025

🔄 New commits pushed — @anton-bobkov please take a look.

Copy link

github-actions bot commented May 7, 2025

2025-05-07 13:41:39 UTC Pre-commit check linux-x86_64-release-asan for a033e02 has started.
2025-05-07 13:41:51 UTC Artifacts will be uploaded here
2025-05-07 13:44:12 UTC ya make is running...
🟢 2025-05-07 13:44:19 UTC Tests successful.

Test history | Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
0 0 0 0 0 0

🟢 2025-05-07 13:44:26 UTC Build successful.

Copy link

github-actions bot commented May 7, 2025

2025-05-07 13:41:40 UTC Pre-commit check linux-x86_64-relwithdebinfo for a033e02 has started.
2025-05-07 13:41:51 UTC Artifacts will be uploaded here
2025-05-07 13:44:03 UTC ya make is running...
🟢 2025-05-07 13:44:09 UTC Tests successful.

Test history | Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
0 0 0 0 0 0

🟢 2025-05-07 13:44:16 UTC Build successful.

Copy link

github-actions bot commented May 7, 2025

✅ Documentation build

Revision built successfully
Revision preview link

@anton-bobkov anton-bobkov marked this pull request as ready for review May 12, 2025 12:11
@anton-bobkov anton-bobkov enabled auto-merge (squash) May 12, 2025 12:39
@ydbot
Copy link
Collaborator

ydbot commented May 12, 2025

Heads-up: it's been 10 business-days since a reviewer comment. @kardymonds, any updates? @anton-bobkov, please check the status with the author.

Copy link
Member

@fomichev3000 fomichev3000 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Я ок, но текст не очень легко читается.
Плюс я очень удивлен, что конструкция GROUP BY в ToC представлена как подстатья "Cинтаксис", а не SELECT. Это специально так?

@anton-bobkov
Copy link
Collaborator

Я ок, но текст не очень легко читается. Плюс я очень удивлен, что конструкция GROUP BY в ToC представлена как подстатья "Cинтаксис", а не SELECT. Это специально так?

Связанный ПР #18283

@anton-bobkov anton-bobkov merged commit c0ae37f into ydb-platform:main May 14, 2025
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants