@@ -9,18 +9,9 @@ void TPlainMerger::DoStart(const std::vector<std::shared_ptr<NArrow::NAccessor::
9
9
}
10
10
11
11
std::vector<NKikimr::NOlap::NCompaction::TColumnPortionResult> TPlainMerger::DoExecute (
12
- const NCompaction::TColumnMergeContext& context, const std::shared_ptr< arrow::RecordBatch>& remap ) {
12
+ const NCompaction::TColumnMergeContext& context, const arrow::UInt16Array& pIdxArray, const arrow::UInt32Array& pRecordIdxArray ) {
13
13
NCompaction::TMergedColumn mColumn (context);
14
14
15
- auto columnPortionIdx = remap->GetColumnByName (IColumnMerger::PortionIdFieldName);
16
- auto columnPortionRecordIdx = remap->GetColumnByName (IColumnMerger::PortionRecordIndexFieldName);
17
- Y_ABORT_UNLESS (columnPortionIdx && columnPortionRecordIdx);
18
- Y_ABORT_UNLESS (columnPortionIdx->type_id () == arrow::UInt16Type::type_id);
19
- Y_ABORT_UNLESS (columnPortionRecordIdx->type_id () == arrow::UInt32Type::type_id);
20
- const arrow::UInt16Array& pIdxArray = static_cast <const arrow::UInt16Array&>(*columnPortionIdx);
21
- const arrow::UInt32Array& pRecordIdxArray = static_cast <const arrow::UInt32Array&>(*columnPortionRecordIdx);
22
-
23
- AFL_VERIFY (remap->num_rows () == pIdxArray.length ());
24
15
std::optional<ui16> predPortionIdx;
25
16
for (ui32 idx = 0 ; idx < pIdxArray.length (); ++idx) {
26
17
const ui16 portionIdx = pIdxArray.Value (idx);
@@ -35,7 +26,7 @@ std::vector<NKikimr::NOlap::NCompaction::TColumnPortionResult> TPlainMerger::DoE
35
26
}
36
27
predPortionIdx = portionIdx;
37
28
}
38
- AFL_VERIFY (remap-> num_rows () == mColumn .GetRecordsCount ());
29
+ AFL_VERIFY (pIdxArray. length () == mColumn .GetRecordsCount ());
39
30
return mColumn .BuildResult ();
40
31
}
41
32
0 commit comments