Skip to content
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

YQL-18340 Clarify table concatenation determinism #4615

Merged
merged 2 commits into from
May 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ The following functions are defined for these purposes:

{% note warning %}

All of the above functions don't guarantee the order of the table union.
CONCAT and EACH join the tables in the original order of enumeration; RANGE, LIKE and FILTER - in the lexicographic order of the tables' names.

The list of tables is calculated **before** executing the query. Therefore, the tables created during the query execution won't be included in the function results.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

{% note warning "Внимание" %}

Порядок, в котором будут объединены таблицы, всеми вышеперечисленными функциями не гарантируется.
CONCAT и EACH объединяют таблицы в исходном порядке перечисления. RANGE, LIKE и FILTER - в лексикографическом порядке по именам таблиц.
blinkov marked this conversation as resolved.
Show resolved Hide resolved

Список таблиц вычисляется **до** запуска самого запроса. Поэтому созданные в процессе запроса таблицы не попадут в результаты функции.

Expand Down Expand Up @@ -111,4 +111,4 @@ SELECT * FROM FILTER(
`my_folder`,
$callable
);
```
```
Loading