diff options
| author | mfilitov <[email protected]> | 2025-06-23 13:44:01 +0300 |
|---|---|---|
| committer | mfilitov <[email protected]> | 2025-06-23 14:34:18 +0300 |
| commit | 17991439b76e6a735563f320d80eecd472428f66 (patch) | |
| tree | 66a81c9eb064552927429690f7d0c4db501a6da5 /yql/essentials/sql/cluster_mapping.cpp | |
| parent | 99a63eaece7367f17dac58e66e45043aa641d9f7 (diff) | |
[GraceJoin] Skip reading input when output is guaranteed to be empty
Adds early termination optimization for `GraceJoin`: if one side is empty and the join kind guarantees an empty result, the other side is no longer read.
Introduces two helpers:
* `ShouldSkipRightIfLeftEmpty`
* `ShouldSkipLeftIfRightEmpty`
Also adds unit tests covering all join kinds and empty input combinations.
Initial issue: <https://github.com/ydb-platform/ydb/issues/19797>
commit_hash:2683031df5b68c293536eacda05c8e79fc452d11
Diffstat (limited to 'yql/essentials/sql/cluster_mapping.cpp')
0 files changed, 0 insertions, 0 deletions
