Skip to content

Commit 34d9616

Browse files
aalkinktf
authored andcommitted
DPL Analysis: fix for slice index builder resetting its caches in a wrong order
1 parent 8c0bd3c commit 34d9616

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Framework/Core/src/IndexBuilderHelpers.cxx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -161,14 +161,14 @@ SliceBuilder::SliceBuilder(std::shared_ptr<arrow::ChunkedArray> source, arrow::M
161161

162162
void SliceBuilder::reset(std::shared_ptr<arrow::ChunkedArray> source)
163163
{
164+
mValues = nullptr;
165+
mCounts = nullptr;
166+
mListBuilder->Reset();
167+
mValuePos = 0;
164168
static_cast<ChunkedArrayIterator*>(this)->reset(source);
165169
if (!preSlice().ok()) {
166170
throw framework::runtime_error("Cannot pre-slice the source for slice-index building");
167171
}
168-
mListBuilder->Reset();
169-
mValues = nullptr;
170-
mCounts = nullptr;
171-
mValuePos = 0;
172172
}
173173

174174
bool SliceBuilder::find(int idx)

0 commit comments

Comments
 (0)