Skip to content

Commit

Permalink
[24-3] Fix shard ranges sort (#11257) (#11376)
Browse files Browse the repository at this point in the history
  • Loading branch information
nikvas0 authored Nov 8, 2024
1 parent 4d45fe1 commit 46fa15c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ydb/core/kqp/executer_actor/kqp_executer_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -993,8 +993,7 @@ class TKqpExecuterBase : public TActorBootstrapped<TDerived> {
std::sort(std::begin(shardsRanges), std::end(shardsRanges), [&](const TShardRangesWithShardId& lhs, const TShardRangesWithShardId& rhs) {
// Special case for infinity
if (lhs.Ranges->GetRightBorder().first->GetCells().empty() || rhs.Ranges->GetRightBorder().first->GetCells().empty()) {
YQL_ENSURE(!lhs.Ranges->GetRightBorder().first->GetCells().empty() || !rhs.Ranges->GetRightBorder().first->GetCells().empty());
return rhs.Ranges->GetRightBorder().first->GetCells().empty();
return !lhs.Ranges->GetRightBorder().first->GetCells().empty();
}
return CompareTypedCellVectors(
lhs.Ranges->GetRightBorder().first->GetCells().data(),
Expand Down

0 comments on commit 46fa15c

Please sign in to comment.