diff options
| author | alexpaniman <[email protected]> | 2026-04-24 14:11:36 +0300 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-04-24 14:11:36 +0300 |
| commit | 92d456ee147c19b171e9ace78ef5696269bf5dbd (patch) | |
| tree | 6b3d98f4a9d045e692dee5786801d57e18bab72b | |
| parent | dcf38c6c42d0c94dd48714fca53c886fab34bd93 (diff) | |
[CBO] Prevent hang inside DPHyp when both tables are OLTP (#38719)
| -rw-r--r-- | ydb/core/kqp/opt/cbo/cbo_interesting_orderings.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ydb/core/kqp/opt/cbo/cbo_interesting_orderings.cpp b/ydb/core/kqp/opt/cbo/cbo_interesting_orderings.cpp index 8f002974de5..2082ca70220 100644 --- a/ydb/core/kqp/opt/cbo/cbo_interesting_orderings.cpp +++ b/ydb/core/kqp/opt/cbo/cbo_interesting_orderings.cpp @@ -678,6 +678,9 @@ bool TOrderingsStateMachine::TLogicalOrderings::IsInitialized() const { } bool TOrderingsStateMachine::TLogicalOrderings::IsSubsetOf(const TLogicalOrderings& logicalOrderings) { + if (!HasState() && !logicalOrderings.HasState()) { + return true; // empty isSubsetOf empty + } return HasState() && logicalOrderings.HasState() && IsInitialized() && logicalOrderings.IsInitialized() && Dfsm_ == logicalOrderings.Dfsm_ && |
