Skip to content

Commit 8069cf6

Browse files
authored
DPL Analysis: fix corner case in index builder algorithm (#13961)
1 parent 337a7fc commit 8069cf6

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Framework/Core/src/IndexBuilderHelpers.cxx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,10 @@ bool IndexColumnBuilder::findSingle(int idx)
159159
}
160160
}
161161

162+
if (mPosition < mSourceSize && valueAt(mPosition) < idx) {
163+
++mPosition;
164+
}
165+
162166
return (mPosition < mSourceSize && valueAt(mPosition) == idx);
163167
}
164168

@@ -176,6 +180,10 @@ bool IndexColumnBuilder::findSlice(int idx)
176180
}
177181
}
178182

183+
if (mValuePos < mValuesArrow->length() && mValuesArrow->Value(mValuePos) <= idx) {
184+
++mPosition;
185+
}
186+
179187
return (mValuePos < mValuesArrow->length() && mValuesArrow->Value(mValuePos) == idx);
180188
}
181189

0 commit comments

Comments
 (0)