Skip to content

Commit

Permalink
YQL-18340 Clarify table concatenation determinism (ydb-platform#4615)
Browse files Browse the repository at this point in the history
  • Loading branch information
avevad authored May 16, 2024
1 parent 5f30de5 commit cac1a93
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
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 - в лексикографическом порядке по именам таблиц.

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

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

0 comments on commit cac1a93

Please sign in to comment.