Skip to content

Commit

Permalink
fix address construction for abstract chunked array (#12614)
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanmorozov333 authored Dec 13, 2024
1 parent 0a87339 commit 118d425
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ydb/library/formats/arrow/accessor/abstract/accessor.h
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ class IChunkedArray {
if (position < chunkCurrent->GetFinishPosition()) {
return accessor.OnArray(
chunkCurrent->GetChunkIndex(), chunkCurrent->GetStartPosition());
} else if (position == chunkCurrent->GetFinishPosition() + 1 && chunkCurrent->GetChunkIndex() + 1 < accessor.GetChunksCount()) {
} else if (position == chunkCurrent->GetFinishPosition() && chunkCurrent->GetChunkIndex() + 1 < accessor.GetChunksCount()) {
return accessor.OnArray(chunkCurrent->GetChunkIndex() + 1, position);
}
AFL_VERIFY(chunkCurrent->GetChunkIndex() < accessor.GetChunksCount());
Expand Down

0 comments on commit 118d425

Please sign in to comment.