File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed
ydb/library/yql/dq/runtime
yql/essentials/minikql/computation Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -108,8 +108,8 @@ class TDqOutputChannel : public IDqOutputChannel {
108
108
if (Packer.PackedSizeEstimate ()) {
109
109
TryPack (/* force */ true );
110
110
}
111
- for (auto & & data : BlockSplitter->SplitItem (values, width)) {
112
- DoPushBlock (std::move ( data) );
111
+ for (const auto & data : BlockSplitter->SplitItem (values, width)) {
112
+ DoPushBlock (data);
113
113
}
114
114
} else {
115
115
DoPush (values, width);
@@ -131,8 +131,8 @@ class TDqOutputChannel : public IDqOutputChannel {
131
131
TryPack (/* force */ false );
132
132
}
133
133
134
- void DoPushBlock (std::vector<arrow::Datum>& & data) {
135
- Packer.AddBlockItem (std::move ( data) );
134
+ void DoPushBlock (const std::vector<arrow::Datum>& data) {
135
+ Packer.AddBlockItem (data);
136
136
137
137
PackerCurrentChunkCount++;
138
138
TryPack (/* force */ false );
Original file line number Diff line number Diff line change @@ -1207,11 +1207,11 @@ TValuePackerTransport<Fast>& TValuePackerTransport<Fast>::AddWideItemBlocks(cons
1207
1207
for (size_t i = 0 ; i < width; ++i) {
1208
1208
data.emplace_back (TArrowBlock::From (values[i]).GetDatum ());
1209
1209
}
1210
- return AddBlockItem (std::move ( data) );
1210
+ return AddBlockItem (data);
1211
1211
}
1212
1212
1213
1213
template <bool Fast>
1214
- TValuePackerTransport<Fast>& TValuePackerTransport<Fast>::AddBlockItem(std::vector<arrow::Datum>& & data) {
1214
+ TValuePackerTransport<Fast>& TValuePackerTransport<Fast>::AddBlockItem(const std::vector<arrow::Datum>& data) {
1215
1215
const auto width = data.size ();
1216
1216
MKQL_ENSURE (width == BlockSerializers_.size (), " Invalid width" );
1217
1217
const ui64 len = data[BlockLenIndex_].scalar_as <arrow::UInt64Scalar>().value ;
Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ class TValuePackerTransport {
88
88
// AddItem()/UnpackBatch() will perform incremental packing - type T is processed as list item type. Will produce List<T> layout
89
89
TSelf& AddItem (const NUdf::TUnboxedValuePod& value);
90
90
TSelf& AddWideItem (const NUdf::TUnboxedValuePod* values, ui32 count);
91
- TSelf& AddBlockItem (std::vector<arrow::Datum>& & data);
91
+ TSelf& AddBlockItem (const std::vector<arrow::Datum>& data);
92
92
size_t PackedSizeEstimate () const {
93
93
return IsBlock_ ? BlockBuffer_.Size () : (Buffer_ ? (Buffer_->Size () + Buffer_->ReservedHeaderSize ()) : 0 );
94
94
}
You can’t perform that action at this time.
0 commit comments