aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorivanmorozov333 <ivanmorozov@ydb.tech>2024-12-13 18:48:05 +0300
committerGitHub <noreply@github.com>2024-12-13 15:48:05 +0000
commit118d425064e84942e9632ba63c40022038e16ad4 (patch)
tree6f88d884d24eba9838e84cf8687d36707aa85172
parent0a873390c45df06eb61f8a65184b51727bab7049 (diff)
downloadydb-118d425064e84942e9632ba63c40022038e16ad4.tar.gz
fix address construction for abstract chunked array (#12614)
-rw-r--r--ydb/library/formats/arrow/accessor/abstract/accessor.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/ydb/library/formats/arrow/accessor/abstract/accessor.h b/ydb/library/formats/arrow/accessor/abstract/accessor.h
index 94d34636c5..6507201cb8 100644
--- a/ydb/library/formats/arrow/accessor/abstract/accessor.h
+++ b/ydb/library/formats/arrow/accessor/abstract/accessor.h
@@ -253,7 +253,7 @@ protected:
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());