Skip to content

Commit 623ac88

Browse files
nikvas0uzhastik
authored andcommitted
[24-3] Fix shard ranges sort (#11257) (#11376)
1 parent 2254f03 commit 623ac88

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

ydb/core/kqp/executer_actor/kqp_executer_impl.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1039,8 +1039,7 @@ class TKqpExecuterBase : public TActorBootstrapped<TDerived> {
10391039
std::sort(std::begin(shardsRanges), std::end(shardsRanges), [&](const TShardRangesWithShardId& lhs, const TShardRangesWithShardId& rhs) {
10401040
// Special case for infinity
10411041
if (lhs.Ranges->GetRightBorder().first->GetCells().empty() || rhs.Ranges->GetRightBorder().first->GetCells().empty()) {
1042-
YQL_ENSURE(!lhs.Ranges->GetRightBorder().first->GetCells().empty() || !rhs.Ranges->GetRightBorder().first->GetCells().empty());
1043-
return rhs.Ranges->GetRightBorder().first->GetCells().empty();
1042+
return !lhs.Ranges->GetRightBorder().first->GetCells().empty();
10441043
}
10451044
return CompareTypedCellVectors(
10461045
lhs.Ranges->GetRightBorder().first->GetCells().data(),

0 commit comments

Comments
 (0)