File tree Expand file tree Collapse file tree 3 files changed +14
-10
lines changed
sdk/cpp/client/ydb_topic/impl
services/persqueue_v1/actors Expand file tree Collapse file tree 3 files changed +14
-10
lines changed Original file line number Diff line number Diff line change @@ -1019,6 +1019,13 @@ message DescribeTopicResponse {
1019
1019
Ydb.Operations.Operation operation = 1 ;
1020
1020
}
1021
1021
1022
+ message PartitionKeyRange {
1023
+ // Inclusive left border. Emptiness means -inf.
1024
+ optional bytes from_bound = 1 ;
1025
+ // Exclusive right border. Emptiness means +inf.
1026
+ optional bytes to_bound = 2 ;
1027
+ }
1028
+
1022
1029
// Describe topic result message that will be inside DescribeTopicResponse.operation.
1023
1030
message DescribeTopicResult {
1024
1031
// Description of scheme object.
@@ -1088,10 +1095,7 @@ message DescribeTopicResult {
1088
1095
// Partition location, filled only when include_location in request is true.
1089
1096
PartitionLocation partition_location = 6 ;
1090
1097
1091
- // Inclusive left border. Emptiness means -inf.
1092
- optional bytes from_bound = 7 ;
1093
- // Exclusive right border. Emptiness means +inf.
1094
- optional bytes to_bound = 8 ;
1098
+ PartitionKeyRange key_range = 7 ;
1095
1099
}
1096
1100
1097
1101
message TopicStats {
Original file line number Diff line number Diff line change @@ -404,12 +404,12 @@ TPartitionInfo::TPartitionInfo(const Ydb::Topic::DescribeTopicResult::PartitionI
404
404
PartitionLocation_ = TPartitionLocation{partitionInfo.partition_location ()};
405
405
}
406
406
407
- if (partitionInfo.has_from_bound ()) {
408
- FromBound_ = TString (partitionInfo.from_bound ());
407
+ if (partitionInfo.has_key_range () && partitionInfo. key_range (). has_from_bound ()) {
408
+ FromBound_ = TString (partitionInfo.key_range (). from_bound ());
409
409
}
410
410
411
- if (partitionInfo.has_to_bound ()) {
412
- ToBound_ = TString (partitionInfo.to_bound ());
411
+ if (partitionInfo.has_key_range () && partitionInfo. key_range (). has_to_bound ()) {
412
+ ToBound_ = TString (partitionInfo.key_range (). to_bound ());
413
413
}
414
414
}
415
415
Original file line number Diff line number Diff line change @@ -1076,10 +1076,10 @@ void TDescribeTopicActor::HandleCacheNavigateResponse(TEvTxProxySchemeCache::TEv
1076
1076
destPart->set_active (sourcePart.GetStatus () == ::NKikimrPQ::ETopicPartitionStatus::Active);
1077
1077
if (sourcePart.HasKeyRange ()) {
1078
1078
if (sourcePart.GetKeyRange ().HasFromBound ()) {
1079
- destPart->set_from_bound (sourcePart.GetKeyRange ().GetFromBound ());
1079
+ destPart->mutable_key_range ()-> set_from_bound (sourcePart.GetKeyRange ().GetFromBound ());
1080
1080
}
1081
1081
if (sourcePart.GetKeyRange ().HasToBound ()) {
1082
- destPart->set_to_bound (sourcePart.GetKeyRange ().GetToBound ());
1082
+ destPart->mutable_key_range ()-> set_to_bound (sourcePart.GetKeyRange ().GetToBound ());
1083
1083
}
1084
1084
}
1085
1085
You can’t perform that action at this time.
0 commit comments