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 {
108108 if (Packer.PackedSizeEstimate ()) {
109109 TryPack (/* force */ true );
110110 }
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);
113113 }
114114 } else {
115115 DoPush (values, width);
@@ -131,8 +131,8 @@ class TDqOutputChannel : public IDqOutputChannel {
131131 TryPack (/* force */ false );
132132 }
133133
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);
136136
137137 PackerCurrentChunkCount++;
138138 TryPack (/* force */ false );
Original file line number Diff line number Diff line change @@ -1207,11 +1207,11 @@ TValuePackerTransport<Fast>& TValuePackerTransport<Fast>::AddWideItemBlocks(cons
12071207 for (size_t i = 0 ; i < width; ++i) {
12081208 data.emplace_back (TArrowBlock::From (values[i]).GetDatum ());
12091209 }
1210- return AddBlockItem (std::move ( data) );
1210+ return AddBlockItem (data);
12111211}
12121212
12131213template <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) {
12151215 const auto width = data.size ();
12161216 MKQL_ENSURE (width == BlockSerializers_.size (), " Invalid width" );
12171217 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 {
8888 // AddItem()/UnpackBatch() will perform incremental packing - type T is processed as list item type. Will produce List<T> layout
8989 TSelf& AddItem (const NUdf::TUnboxedValuePod& value);
9090 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);
9292 size_t PackedSizeEstimate () const {
9393 return IsBlock_ ? BlockBuffer_.Size () : (Buffer_ ? (Buffer_->Size () + Buffer_->ReservedHeaderSize ()) : 0 );
9494 }
You can’t perform that action at this time.
0 commit comments